As per Pasqualle's request, this issue is branched from #292150: Hide empty tabs. On that issue, in comment #20, I submitted a patch that hid empty views tabs. However, the design of the patch was not ideal, and a different style patch has now been committed. This patch does not hide empty views, since they may have exposed filters. A patch to hide empty views that don't have exposed filters set on them would be great, however. I think that when the views is initialized, the view object can be checked to see whether exposed filters are set or not.

CommentFileSizeAuthor
#3 qt.patch829 byteskilles@www.drop.org

Comments

detot’s picture

subscribe

bomarmonk’s picture

Subscribe: I definitely need this. Thanks in advance to those PHP wizards out there!

killes@www.drop.org’s picture

Status: Active » Needs review
StatusFileSize
new829 bytes

Here's a patch that works for me.

EvanDonovan’s picture

Thanks, killes. I'll see if this applies on my site. I am using 2.0-rc4 currently.

katbailey’s picture

Committed - thanks, killes.
http://drupal.org/cvs?commit=342332

katbailey’s picture

Status: Needs review » Fixed
EvanDonovan’s picture

Guess it must work then :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

daengo’s picture

Thank you so much!!! This is just what I needed. I'm glad to have found this!

bomarmonk’s picture

Yes, this fix works as expected!