Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I leave show when empty unchecked, the tab of the empty view is still shown. Clicking to it makes the whole tabset disappear! - #734070: Empty views causes tabs to disappear
Isn't the behavior supposed to be, if show when empty is unchecked, the empty tab is not shown?
Thanks for making this great module.
Comment | File | Size | Author |
---|---|---|---|
#15 | 734380_3.patch | 863 bytes | smokris |
#10 | 734380_2.patch | 2.81 KB | ramlev |
#8 | 734380_1.patch | 2.06 KB | ramlev |
#7 | 734380.patch | 1.3 KB | ramlev |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedsubscribe
Comment #2
4kant CreditAttribution: 4kant commentedsubscribe
Comment #3
mzwyssig CreditAttribution: mzwyssig commentedSubscribe.
Comment #4
mzwyssig CreditAttribution: mzwyssig commentedComment #5
vlooivlerke CreditAttribution: vlooivlerke commentedThis is a serious problem. You are also unable to hide a normal view tab if the view is empty. There are plenty treads trying to solve this issue but none was successful.
I thought this module was a solution but now it has the same problem as views tabs.
It shows if the view is empty. Why would you want a button that point to nothing?
Comment #6
iNade CreditAttribution: iNade commentedSubscribing
Comment #7
ramlev CreditAttribution: ramlev commentedI have done a patch, which seems to fix the issue in the 6.x-1.0-beta6 version.
Dont have done the check in $show , since i believe that the author have another thought on this variable.
Please lemme know if it's all good
Comment #8
ramlev CreditAttribution: ramlev commentedA new and updated patch is attached, a minor bug is fixed.
It now works if your view contains any arguments.
Comment #9
vlooivlerke CreditAttribution: vlooivlerke commentedFatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /sites/all/modules/views/includes/base.inc on line 88
I get this error message when I patch the module and visit a views display tabs website.
My memory limit is 128m.
Comment #10
ramlev CreditAttribution: ramlev commentedI have added a new patch, which is removing the view variable after testing if the view tab is containing any data, this should free up a lot of memory.
You should replace the old patch with this one
Comment #11
vlooivlerke CreditAttribution: vlooivlerke commentedFatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 78 bytes) in /sites/all/modules/views/plugins/views_plugin_display.inc on line 223
and
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76 bytes) in /home/wiki/public_html/sites/all/modules/views/includes/base.inc on line 100
still some errors.
Comment #12
vlooivlerke CreditAttribution: vlooivlerke commentedok I increased my memory limit to 256M but still get the same errors, it even use more memory.
http://utopiaclivias.co.za/ here is a link to show you that my tab menus are not that extensive to use so much memory.
Or I must be patching the wrong version.
Comment #13
udane CreditAttribution: udane commentedI have the same problem. Is there a solution?
Thanks.
Comment #14
mindaugasd CreditAttribution: mindaugasd commentedsub
Comment #15
smokrisRevised patch attached, which applies cleanly to 6.x-1.0-beta6. Works for me with views-6.x-2.16 (no memory issues as reported above).
Comment #16
crash98 CreditAttribution: crash98 commented#15 also works for me with Views 6.x-2.16. Thx.