Creating an entity fails when we have an entityqueue configured with Entity Reference Views because the entity queue doesn't have a target bundle.

Queue configuration

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (line 130 of modules/contrib/auto_entityqueue/auto_entityqueue.module).
in_array('article', NULL) (Line: 130)
auto_entityqueue_get_queues_by_type_and_bundle('node', 'article') (Line: 59)
auto_entityqueue_entity_insert(Object)
call_user_func_array(Object, Array) (Line: 426)
...
CommentFileSizeAuthor
AutoAddError.PNG48.45 KBsoubi
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • fix/3360466 Comparecompare

Comments

Soubi created an issue. See original summary.

soubi’s picture

Status: Active » Needs review
pbonnefoi’s picture

Thanks @Soubi for the report, duplicate of #3005314. I will credit you as well for the patch.

pbonnefoi’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3005314: in_array() expects parameter 2 to be array, null given