Closed (fixed)
Project:
FAQ_Ask
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
16 May 2012 at 18:08 UTC
Updated:
31 May 2012 at 16:30 UTC
Would it be possible to hide the Unanswered Questions block when it's empty? On the 5/16/12 dev release, the block shows empty with nothing but the block title when there are no unanswered questions. I've temporarily remedied this by changing line 2046 in my version of the module (the return statement in _faq_ask_list_unanswered()) to return 'No unanswered questions.' instead of returning ' ', but it would be preferable to hide the block if it's empty. I think that's how it worked in Drupal 6.
Comments
Comment #1
stenjo commentedThat is actually a small bug that I happen to have introduced. The intended behaviour is that it should not be visible if there are no unanswered questions.
Comment #2
jlea9378 commentedYup it looks like it's fixed in the May 17th dev release.