Checking for $tabs variable being empty in theme templates is returning a non-empty array even when there are no links.
This variable is populated by theme system via menu_local_tabs. I think that either menu or theme systems should return an empty array or we should change the way core themes check for the existence of tabs.
Patch for menu module.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | menu_tabs-1298232-3.patch | 1.24 KB | mgifford |
| #5 | menu_tabs-1298232-3.patch | 1.24 KB | mahtoranjeet |
| #3 | tabsthemereturnemptyarray-1298232-2.patch | 739 bytes | mahtoranjeet |
| #1 | menu_tabs.patch | 1.04 KB | theborg |
| menu_tabs.patch | 559 bytes | theborg |
Comments
Comment #1
theborg commentedRe-test with some changes.
Comment #2
mahtoranjeet commentedReproduced the Bugs
Array (
[#theme] => menu_local_tasks
[#primary] =>
[#secondary] =>
)
error: includes/menu.inc: No such file or directory)
on line no 2221
Comment #3
mahtoranjeet commentedIn patch seems path was wrong, So created new patch
Comment #5
mahtoranjeet commentedNew patch with path change
Comment #7
mgiffordComment #8
rahul.shindeComment #9
rahul.shinde@theborg, it seems the issue has been fixed. But can you please review the changes that you were looking for.
Comment #10
rahul.shindeComment #11
piyuesh23 commentedComment #12
piyuesh23 commentedComment #13
mgiffordre-uploading last patch.
Comment #21
volegerLooks like
menu_local_tabs()already fixed.