Problem/Motivation

Click 'Add' on the link composite element first throws the below error.

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of /private/var/www/sites/d8_webform/core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0 /private/var/www/sites/d8_webform/core/includes/bootstrap.inc(566): _drupal_error_handler_real(2, 'array_flip(): C...', '/private/var/ww...', 227, Array) #1 [internal function]: _drupal_error_handler(2, 'array_flip(): C...', '/private/var/ww...', 227, Array) #2 /private/var/www/sites/d8_webform/core/lib/Drupal/Core/Entity/EntityStorageBase.php(227): array_flip(Array) #3 /private/var/www/sites/d8_webform/modules/sandbox/webform/src/Plugin/WebformElement/EntityAutocomplete.php(50): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #4 /private/var/www/sites/d8_webform/modules/sandbox/webform/src/Element/WebformMultiple.php(566): Drupal\webform\Plugin\WebformElement\EntityAutocomplete->setDefaultValue(Array) #5 /private/var/www/sites/d8_webform/modules/sandbox/webform/src/Element/WebformMultiple.php(389): Drupal\webform\Element\WebformMultiple::setElementDefaultValue(Array, Array) #6

Proposed resolution

Determine why the error is being thrown and fix it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

jrockowitz’s picture

Status: Active » Needs review
FileSize
465 bytes

Status: Needs review » Needs work

The last submitted patch, 3: 2931222-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

jrockowitz’s picture

Status: Needs work » Needs review
FileSize
3.4 KB
jrockowitz’s picture

Status: Needs review » Fixed

  • jrockowitz committed c073f23 on 8.x-5.x
    Issue #2931222 by jrockowitz: Error being thrown by #multiple entity...

Status: Fixed » Closed (fixed)

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