- 🇫🇷France pbonnefoi
It seems that this is not working on the latest version. I'm investigating.
When using entityqueue_smartqueue for user entities, the following error happens when inserting a user, preventing adding a smartqueue for the user:
[warning] in_array() expects parameter 2 to be array, string given entityqueue_smartqueue.module:74
In entityqueue_smartqueue.module, entityqueue_smartqueue_entity_insert/update/delete()
checks whether the entity that got inserted is of the relevant bundle, by doing:
if (!in_array($entity->bundle(), $queue->getHandlerConfiguration()['bundles'], TRUE)) {
continue;
}
Attached patch adds a check for $queue->getHandlerConfiguration()['bundles']
prior to the in_array()
, so the automatic subqueue creation/updating/deleting also works for entity types that don't have bundles (e.g., user).
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
It seems that this is not working on the latest version. I'm investigating.