Modify

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 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 14 years ago by Thomas Moschny

Cc: Thomas Moschny added; anonymous removed

Marked #4292 as a duplicate.

comment:3 Changed 14 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

[9866] #8506

comment:4 Changed 8 years ago by Ryan J Ollos

Owner: Catalin BALAN deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.