An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /node/1/edit?destination=/admin/content&ajax_form=1&_wrapper_format=drupal_ajax
StatusText: OK
ResponseText: ( ! ) Notice: Undefined index: #submit in /Users/username/Sites/somesite.test/web/modules/contrib/svg_image_field/src/Plugin/Field/FieldWidget/SvgImageFieldWidget.php on line 226I have a Media field inside a Paragraph, so anytime I click "Add Media" button, I get that AJAX error message.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | check_submit_index-3151000-1.patch | 942 bytes | dallen33 |
Comments
Comment #2
dallen33 commentedHere's a patch that works.
Comment #3
mandclu commentedComment #5
mandclu commentedChecking that the
#submitarray exists before using it in the comparison only makes sense, so merging this into the 2.0.x branch.