- Issue created by @allan.ordogh
- 🇫🇷France lazzyvn paris
Try the dev version, I never checked with multilingual
Hi !
i'm updating drupal/datafield 2.0.8 to 2.0.10 and now when i'd like to save a node translation on drupal 10.4.3 i have the following error :
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in count() (line 258 of modules/contrib/datafield/src/Plugin/Field/FieldWidget/Base.php).
Drupal\datafield\Plugin\Field\FieldWidget\Base->massageFormValues() (Line: 505)
Drupal\Core\Field\WidgetBase->extractFormValues() (Line: 244)
Drupal\Core\Entity\Entity\EntityFormDisplay->extractFormValues() (Line: 334)
Drupal\Core\Entity\ContentEntityForm->copyFormValuesToEntity() (Line: 301)
Active
2.0
Code
Try the dev version, I never checked with multilingual