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 226

I have a Media field inside a Paragraph, so anytime I click "Add Media" button, I get that AJAX error message.

CommentFileSizeAuthor
#2 check_submit_index-3151000-1.patch942 bytesdallen33

Comments

dallen33 created an issue. See original summary.

dallen33’s picture

StatusFileSize
new942 bytes

Here's a patch that works.

mandclu’s picture

Status: Active » Needs review

  • mandclu committed 29a8edd on 2.0.x authored by dallen33
    Issue #3151000 by dallen33: Notice: Undefined index: #submit
    
mandclu’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Needs review » Fixed

Checking that the #submit array exists before using it in the comparison only makes sense, so merging this into the 2.0.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.