Hey there,
at some point the Drupal core got extended by the possibility to use "bundle" in taxonomy term entity field queries.
Because that one was very sloppy integrated, it does not check for existence of a certain vocabulary before it access it (taxonomy.module:2048).
In combination with this module this causes PHP notices, because this module access the field settings containing the bundles for a given entity type like this:
$bundles = _entity_reference_multiple_bundles_prepare($field['settings']['target_entities_bundles'][$target_type]) entity_reference_multiple.module:412.
The problem with this is, that the array in "...['target_entities_bundles'][$target_type]" has another index before it reaches the real bundle list that is enabled for the given $target_type.
The bundle condition gets the following as a value:
array(
'target_bundles' => array(
'bundle_1' => 'bundle_1',
...
)
).
This array can not be processed properly. It may somehow work for nodes, because the SelectQuery rescues it somehow, but it does for sure not work for taxonomy terms.
I created a patch to fix this. It will be in the first comment.
A quick merge is vital, because this breaks module functionality.
func0der
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_reference_multiple-fix_bundle_filtering-2391757-2.patch | 781 bytes | func0der |
Comments
Comment #1
func0der commentedThere you go.
Comment #2
func0der commentedUpdated patch, because path names where wrong.
Comment #3
func0der commentedComment #5
zestagio commentedHi, Thanks for you patch. Patch was applied