Closed (outdated)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2013 at 21:20 UTC
Updated:
19 Sep 2019 at 21:21 UTC
Jump to comment: Most recent
Comments
Comment #1
chris matthews commentedThe Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue
Comment #2
srees commentedIn case this has any value to you anymore, I had a similar issue that appears closely related.
I found in my case that replacing render_area('empty') with render_empty() (a legacy function) worked. (Line 71 of theme.inc)
I kinda suspect that this is because the logic is inconsistent and poorly named, and the legacy functions in views_plugin_display.inc indicate this.
area_text's render(), which is called by render_area for the header, footer, and empty text, only shows the content if it is passed FALSE (or if the handler->options['empty'] is not empty).
For header and footer, we want the content to display when there are results, so it is passed $empty = FALSE for those in theme.inc, but the logic was failed to be reversed for the empty field, which we want to display when there are NOT results.
Line 71 probably should have been,
The only change is adding a shebang in the render_area argument....