When there are no topics at all blocks are still displayed, although empty. Attached patch makes empty forum blocks not to be displayed (the same behaviour has e.g. comment's "Recent comments").
This also works with taxonomy_access module, when some roles do not have access to all forums/topics - there are forums/topics, but those people see only empty block. With this patch the don't see the block at all.
Grr. I'll attach patches for 4.6.0 and cvs when the uploading issue is fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | forum_module-no_block_if_no_content.diff | 1.4 KB | Cvbge |
| #1 | forum_module-no_block_if_no_content-cvs.diff | 1.57 KB | Cvbge |
Comments
Comment #1
Cvbge commentedHere's patch against cvs
Comment #2
Cvbge commentedAnd for 4.6.0
Comment #3
Steven commentedCommitted to both 4.6 and HEAD. Good catch.
Comment #4
(not verified) commented