Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2008 at 16:53 UTC
Updated:
23 Feb 2009 at 16:40 UTC
Jump to comment: Most recent file
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.