Problem/Motivation

With the Value widget configured to use static value, seeing the following:

Warning: Illegal string offset 'value' in Drupal\value_widget\Plugin\Field\FieldWidget\ValueWidget->getValues() (line 195 of /app/web/modules/contrib/value_widget/src/Plugin/Field/FieldWidget/ValueWidget.php).: 
Warning: Invalid argument supplied for foreach() in Drupal\value_widget\Plugin\Field\FieldWidget\ValueWidget->formElement() (line 131 of /app/web/modules/contrib/value_widget/src/Plugin/Field/FieldWidget/ValueWidget.php).: 

Steps to reproduce

  • Set up a node with List(text) field that has allowed values
  • Configure using Value widget with static value type and enter the value to set
  • Open the node form to observe warnings

Comments

jason.bell created an issue. See original summary.

kerasai’s picture

Status: Active » Fixed

Fix for this included in release 1.0.0-alpha3.

Status: Fixed » Closed (fixed)

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