Closed (fixed)
Project:
Views Tagadelic
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jan 2009 at 12:31 UTC
Updated:
7 Jul 2010 at 14:40 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | theme.inc.patch | 801 bytes | anrikun |
| tagadelic_views.patch | 639 bytes | gustav |
Comments
Comment #1
indytechcook commentedGood Catch gustav. Has anyone else reviewed this patch?
Comment #2
anrikun commentedThis patch works but it seems to have been badly committed into 6.x-1.1
From line 49 in theme.inc, instead of:
It should be:
Because of that, the same bug still occurs in 6.x-1.1.
Comment #3
anrikun commentedHere's the patch applied to 6.x-1.1's theme/theme.inc to fix the bug.
Comment #4
yan commentedPatch from #3 works for me against 6.x-1.1. Thanks!
Comment #5
anrikun commentedComment #6
indytechcook commentedCommited
http://drupal.org/cvs?commit=383592