Problem/Motivation
The machine_name field type tries to access a exists element on its render array to ensure the machine_name is unique. However, this value is not provided by the ScopeForm.
Steps to reproduce
- Ensure error reporting is enabled.
- Create a new OAuth server
- Create a new scope
An error will be shown.
Notice: Undefined index: exists in Drupal\Core\Render\Element\MachineName::validateMachineName() (line 266 of core/lib/Drupal/Core/Render/Element/MachineName.php).
Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 280)
Proposed resolution
Use [$this->storage, 'load'] similar to the other forms.
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | oauth2_server-3174092-4.patch | 516 bytes | sanduhrs |
| #3 | oauth2_server-3174092-3.patch | 386 bytes | sanduhrs |
| #2 | oauth2_server-3174092-2.patch | 573 bytes | kingdutch |
Comments
Comment #2
kingdutchComment #3
sanduhrsComment #4
sanduhrsComment #7
sanduhrsThanks for the patch!