Basically it doesn't filter values when they're empty
It causes the situation where is not possible to remove the plugin with configuration in the field with the cardinality = unlimited

Comments

alphawebgroup created an issue. See original summary.

alphawebgroup’s picture

StatusFileSize
new933 bytes
alphawebgroup’s picture

Assigned: alphawebgroup » Unassigned
Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: 2981112-2.patch, failed testing. View results

dubs’s picture

+1 for to have this submitted - it works for me :-)

joachim’s picture

> It causes the situation where is not possible to remove the plugin with configuration in the field with the cardinality = unlimited

I've applied the patch and I'm still unable to remove items from an unlimited-value field.

daniel kulbe’s picture

Status: Needs work » Needs review
StatusFileSize
new881 bytes

New patch ...

jnorton’s picture

Drupal 9 patch attached for Plugin version 8.x-2.8.

ckaotik’s picture

Title: PluginSelector::massageFormValues() fix » Cannot remove value due to PluginSelector::massageFormValues()

This issue resolved itself for me when using #2647312: Use SubFormState in plugin selectors.