Opened 14 years ago
Last modified 2 years ago
#7498 new defect
Items with capital names cannot be assigned a parent group
Reported by: | Adam Piper | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | MenusPlugin |
Severity: | normal | Keywords: | |
Cc: | Thomas Moschny | Trac Release: | 0.11 |
Description
I ran into this with http://trac-hacks.org/wiki/TimingAndEstimationPlugin which yields 'mainnav', "Billing". I can enabled/disable this item, but cannot assign it to another parent menu. This seems to be because of the capital; if I hack that plugin to yield "billing" then everything works fine.
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Cc: | Thomas Moschny added; anonymous removed |
---|
Marked #4292 as a duplicate.
comment:3 Changed 14 years ago by
The problem is that MenusPlugin uses trac.ini keys (which are downcased) to refer to urls which are case sensitive. A more general solution would be to allow the key to specify its casing as an optional value (eg: billing.casing=Billing
).
Either way, to ease this, I have changed TimingAndEstimationPlugin to use "billing" instead of "Billing".
HTH, Russ
comment:4 Changed 8 years ago by
Owner: | Catalin BALAN deleted |
---|
I have a similar issue for items defined with the TracTabPlugin. I haven't dealt with it in a while, but from my notes, the solution I came up with appears to be the following: