Issue Details (XML | Word | Printable)

Key: CRM-5188
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Trivial Trivial
Assignee: Yashodha Chaku
Reporter: Tom Kirkpatrick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
CiviCRM

Recent items block (drupal) should not show if empty

Created: 06/Oct/09 12:26 PM   Updated: 25/Nov/09 12:24 PM
Component/s: Drupal Integration Modules
Affects Version/s: 3.0
Fix Version/s: 3.1

Time Tracking:
Not Specified


 Description  « Hide
If the CMS user has not visited any pages recently, the Recent Items block should not show. Currently it just shows the title 'Recent Items', but with no actual content. The entire block should be hidden if there is no content for it.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
David Greenberg added a comment - 06/Oct/09 03:25 PM
If it's easy to hide block in this case, I will. Otherwise I'll put some text in the block - "No recent items".

Tom Kirkpatrick added a comment - 06/Oct/09 03:29 PM
I think that you just need to ensure that $block['content'] is unset.

David Greenberg added a comment - 14/Oct/09 10:49 PM
r24207. Entire block is hidden if there are not items in the Recent Items array.

Yashodha Chaku added a comment - 09/Nov/09 06:30 AM
assigning for 3.1 verification