/tracker doesn't show the local task for /tracker/uid - but /tracker/uid does. This is proposed solution from pwolanin via irc. Not tested to see if it breaks something else yet.
Kind of defeats the object of local tasks with access callbacks depending on a uid, so marking as critical - same bug in 6 and 7.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | to-arg-tabs-298722-12-D6.patch | 1.18 KB | pwolanin |
| #11 | to-arg-tabs-298722-11.patch | 1.87 KB | pwolanin |
| #10 | track-tab-test-only-298722-10.patch | 740 bytes | pwolanin |
| menu_translate.patch | 951 bytes | catch |
Comments
Comment #1
pwolanin commentedI might put this line inside the if{} :
thought I don't think it will actually have any logical effect.
Comment #2
pwolanin commentedchx says there might be a problem here - if a to_arg function needs the loaded object. I'm not sure the API for to_arg encompasses that?
Comment #4
lilou commentedSee: #335122: Test clean HEAD after every commit and http://pastebin.ca/1258476
Comment #5
catchNeeds a test, could probably just do it in the tracker tests.
Comment #6
catchSee also #367069: Where did "My tracker" go?
Comment #7
pwolanin commentedfollow up to #2 - looking at the other function that calls _menu_link_map_translate():
http://api.drupal.org/api/function/_menu_link_translate/6
It's clear that we never expect $map to have the loaded objects when computing the to_arg values, only the path elements.
Comment #8
pwolanin commentedto re-phrase:
2 functions call _menu_link_map_translate()
the expressed concern recorded in #2 was that the proposed change to _menu_translate would mean that $map would not contain any loaded objects.
In fact, based on the code is _menu_link_translate, clearly the to_arg fucntion should not be expecting to have any loaded objects, and the change proposed here would actually increase the consistency of the code.
Comment #9
pwolanin commentedper talk w/ Dries, we can jsut do:
Comment #10
pwolanin commentedHere's an additional assertion for the tracker test which demonstrates the bug.
Comment #11
pwolanin commentedtest + fix.
Comment #12
pwolanin commentedpatch for D6
Comment #13
dries commentedThanks Peter. Looks good, tests pass so I committed it to DRUPAL-6 and CVS HEAD.
Comment #14
gábor hojtsyRemoving tag on backport.