Warning: array_key_exists() expects parameter 2 to be array, null given in Drupal\svg_image_field\Plugin\Field\FieldWidget\SvgImageFieldWidget::validateRequiredFields()

CommentFileSizeAuthor
#2 3243589-02.patch727 bytesabdelrahman amer

Comments

Abdelrahman Amer created an issue. See original summary.

abdelrahman amer’s picture

StatusFileSize
new727 bytes
mandclu’s picture

Status: Active » Needs review

  • mandclu committed ee1e56d on 2.2.x
    Issue #3243589 by Abdelrahman Amer, mandclu: Warning when trying to...
mandclu’s picture

Version: 2.1.0 » 2.2.x-dev
Status: Needs review » Fixed

Thanks for identifying this, and for providing a fix. I adjusted it slightly to also confirm that the variable is not empty and an array, but your approach is sound. Merged in, and will incorporate into a new release shortly.

Status: Fixed » Closed (fixed)

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