I just installed the module and added the field as part of one paragraph attached to a content type.
Every time I save a node of the content type, the following message is displayed. The attached patch is fixing this small issue.

Notice: Undefined index: #value in Drupal\multiple_selects\Plugin\Field\FieldWidget\OptionsMultipleSelectWidget::validateElement() (line 44 of modules/contrib/multiple_selects/src/Plugin/Field/FieldWidget/OptionsMultipleSelectWidget.php).
Drupal\multiple_selects\Plugin\Field\FieldWidget\OptionsMultipleSelectWidget::validateElement(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 282)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object) (Line: 238)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'node_home_page_edit_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('node_home_page_edit_form', Array, Object) (Line: 575)
Drupal\Core\Form\FormBuilder->processForm('node_home_page_edit_form', Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder->buildForm('node_home_page_edit_form', Object) (Line: 93)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 665)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

web247 created an issue. See original summary.

web247’s picture

Status: Active » Needs review
FileSize
950 bytes

Here is the patch.

bfodeke’s picture

Rerolled patch so it can be properly applied.

bfodeke’s picture

Status: Needs review » Reviewed & tested by the community
bfodeke’s picture

Status: Reviewed & tested by the community » Needs review
khaled.zaidan’s picture

I think issue would be fixed with #2866543: Support required fields (since that changes/improves the way the validation is implemented).

DamienMcKenna’s picture

Title: Patch to fix the notice » "Notice: Undefined index: #value in validateElement()"
Assigned: web247 » Unassigned

Reminder: the "assigned" field is for indicating you're actively working on something, it isn't for indicating that you worked on something.

JeroenT’s picture

Status: Needs review » Closed (duplicate)

This issue should be fixed since #2866543: Support required fields was committed.