On saving values in a machine name field through the widget, I get the following notices:
Notice: Undefined index: exists in Drupal\Core\Render\Element\MachineName::validateMachineName() (line 245 of core/lib/Drupal/Core/Render/Element/MachineName.php).
Drupal\Core\Render\Element\MachineName::validateMachineName(Array, Object, Array)
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in Drupal\Core\Render\Element\MachineName::validateMachineName() (line 246 of core/lib/Drupal/Core/Render/Element/MachineName.php).
Patch to follow.
Comments
Comment #2
james.williamsPatch :-)
Comment #3
welly commentedHi James,
Thanks for the patch, just tested it and works well. Cheers!
+1 to merge
Comment #6
welly commentedAdded a test (more tests to come)
Comment #7
welly commentedComment #9
c-logemann@welly: thanx for adding a test. And more test would be fine.
I did an own commit for the test part of the patch to address authorship for you and james.williams separately.
(The "dcmuc16"-tag is because I'm currently working on drupalcamp munich codesprint)