My view which has an 'Entity Reference' display won't show my 'NO RESULTS BEHAVIOUR'. If I add a new display to the view of, for example, page, the 'NO RESULTS BEHAVIOUR' shows up fine.
Is there something I'm missing or is this a bug?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-1897534-3-do-not-test.diff | 824 bytes | das-peter |
| #3 | entityreference-views-no-results-behaviour-1897534-3.patch | 4.51 KB | das-peter |
Comments
Comment #1
das-peter commentedI just stumbled over this and decided to patch it up.
For now the "No Results Behavior" only works with another view with a entity reference display - and it's unlikely that we can change that.
The created code vastly bases on
views_handler_area_view::render(). Unfortunately we can't re-use the method because we need access to the views object used to render, but the handler doesn't expose the object atm.Comment #2
irowboat commentedWorks for me. Thank you.
Comment #3
das-peter commentedFixed an issue with the validator.
Comment #4
chris matthews commentedThe 5 year old patch in #3 to EntityReference_SelectionHandler_Views.class.php and entityreference_plugin_display.inc does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.
Comment #5
neeraj420 commentedAny update on this please?
I am facing similar issue, or is there any other workaround please.