Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Mar 2010 at 21:06 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
aspilicious commentedI marked #746606: Customise dashboard link introduces tab issue. [big markup problem] as a duplicate... (how ironic)
Comment #2
sunIntroduced/caused by #556872: Action links do not work on all levels (example: 'add block' action link does not appear)
Does this also happen in Garland?
If not, http://api.drupal.org/api/function/seven_preprocess_page/7 is most likely the trigger.
Comment #3
Jeff Burnz commentedYes it happens with Garland and other themes.
Comment #4
damien tournoud commentedThe core of the issue is in the "Find all tabs at the same level or above the current one." code:
Also, there is a mess of MENU_DEFAULT_LOCAL_TASK constants used as is when the actually required check is against the MENU_LINKS_TO_PARENT parameter.
Comment #5
sunHm. The first, I'd agree with :)
The second. Is reversed? (not sure)
Powered by Dreditor.
Comment #6
damien tournoud commentedThat's by design.
Because in the first case you gone up a tab, in the second case you want no to go up a tab, or you will get a duplicate level in the middle.
Comment #8
sun#4: 755638-menu-tasks-messed-up.patch queued for re-testing.
Comment #9
damien tournoud commentedWhat this code seems to do is:
I have no idea why (3) is necessary. It seems that my patch above just skipped it.
Comment #10
damien tournoud commentedThis feels closer to the correct patch.
Comment #11
sunEdge-case, but possible: Can we move this above the 'access' check?
134 critical left. Go review some!
Comment #12
damien tournoud commentedWe have access checks everywhere in that function, so I don't believe it makes a lot of difference. But here is one with the access control on the main router moved below.
Comment #13
aspilicious commentedI can tell that the patch "works"...
No more duplication of tabs!
So if you agree about the code we can mark this (almost ciritcal) patch rtbc.
Comment #14
yoroy commentedI searched before posting for a new issue for a change. subscribe.
Comment #15
aspilicious commentedLets review this fast, as this is a very clear visual problem we are getting a lot of dupplicated issues:
#758884: duplicated tabs on menu_default_local_task page
Comment #16
pasquallesubscribe
Comment #17
rickvug commentedI believe I was about to post about the same issue as here. The first time I visit the dashboard I don't see the duplicate tabs. After I edit the dashboard the links show up. For what it is worth, here's a 20 second screen cast of the problem: http://youtu.be/fG7YWRg7Ue0.
Comment #18
rickvug commentedI tested the lastest patch in #12 and it fixed the issue. It looks like there is one minute typo in the comments. Here's the change:
Attached is a manually edited patch with documentation change.
Comment #19
aspilicious commentedComment #20
sun#766406: MENU_LOCAL_TASK menu items appears twice has been marked as duplicate.
Comment #21
yoroy commentedanother duplicate: #783776: Dashboard display bugs
Comment #22
yoroy commented#18: 755638-menu-tasks-messed-up_2.patch queued for re-testing.
Comment #23
webchickCommitted to HEAD. Thanks!