Empty block should not have results
gustav - January 30, 2009 - 12:31
| Project: | Views Tagadelic |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
The views module allows empty blocks to be hidden altogether. Unfortunately that did not work with tagadelic blocks because even if none of the nodes had tags, the nodes would still be listed in $view->result. This keeps the views module from noticing that the block is empty (see http://drupal.org/node/332762). This patch fixes that by clearing the $view->result array when the block is empty.
This patch is for version 6.x-1, but the issue tracker did not allow me to select that version, hence this issue is incorrectly labelled as 5.x-1.x-dev.
| Attachment | Size |
|---|---|
| tagadelic_views.patch | 639 bytes |

#1
Good Catch gustav. Has anyone else reviewed this patch?