Opened 7 years ago

Items with capital names cannot be assigned a parent group

Reported by: Owned by: Adam Piper normal MenusPlugin normal Thomas Moschny 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.

comment:1 Changed 7 years ago by Ryan J Ollos

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:

• Redefine the label for entries created in [tractab] by setting its parent to none, and then creating a new entry with the desired label and properties: enabled = 1, href, order, and perm.

comment:2 Changed 6 years ago by Thomas Moschny

Cc: Thomas Moschny added; anonymous removed

Marked #4292 as a duplicate.

comment:3 Changed 6 years ago by Russ Tyndall

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 5 weeks ago by Ryan J Ollos

Owner: Catalin BALAN deleted

Modify Ticket

Change Properties