Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2008 at 13:59 UTC
Updated:
1 Oct 2008 at 13:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedRegistered this as DROP task #107, maybe other menu loaders don't properly return FALSE.
Comment #2
dawehnerhere is the patch
for this small issue // i will look for more things like this tomorrow morning
Comment #3
pwolanin commenteduse
FALSEComment #4
lilou commentedComment #5
lilou commented+doxygen
Comment #6
damien tournoud commentedLooks great, thank you.
Can we check that all other _load() functions correctly return FALSE?
Comment #7
lilou commentedI check all
_load()function and I haven't findNULLreturn.Comment #8
damien tournoud commentedOk, so this looks ready to go in.
Comment #9
damien tournoud commentedBy the way, thanks lilou.
Comment #10
dries commentedIs checking the return value of _load() functions something we can write a test for?
Comment #11
damien tournoud commented@Dries: we need to think a bit about that.
With static code analysis, it would be easy to cover all cases. On our testing framework, we could just call each _load function with a dummy value (NULL, for example) and verify that FALSE is returned. That's not perfect but it can provide a safety net for future regressions. I'll check if that's possible / easy to do.
Comment #12
dries commentedI've committed this to CVS HEAD. Should probably be back-ported to DRUPAL-6.
Comment #13
pwolanin commentedstill need to go to D6
Comment #14
pwolanin commentedPatch needed to be re-rolled from the drupal root dir, but applies and works.
Comment #15
gábor hojtsyLooks good, thanks, committed.
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.