Posted by jsacksick on August 23, 2011 at 10:19am
3 followers
| Project: | Entity reference |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When "entity type" : "all bundles" is selected, an empty list is returned.
Comments
#1
This was caused because the
target_bundles arraywas filled even if all bundles was selected.Because of that, an
entityCondition('bundle')was added to theentityFieldQuery()object.As a consequence, an empty result was returned.
Corrected by adding a condition to check if bundle isn't empty.
#2
Thanks for your report. Merged a slightly different fix in b5c6e31.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.