- Issue created by @Supreetam09
- 🇮🇳India Supreetam09 Kolkata
We need to handle 2 cases:
- When the count of type of entity bundles involved is more than 1, then current code will work, as
count($handler->getReferenceableEntities(NULL, 'CONTAINS', 2))
will return 2 - When the count of type of entity bundles involved is equal to 1, we need to count the items inside bundle array key. Ex: in my case, the count should have been of
count($handler->getReferenceableEntities(NULL, 'CONTAINS', 2)['gallery_item'])
- When the count of type of entity bundles involved is more than 1, then current code will work, as
- 🇮🇳India Supreetam09 Kolkata
There is some SSH error, I can't create MR.
Adding a patch instead for the fix. - Status changed to Needs review
3 months ago 10:04am 23 August 2024