Modify

Opened 4 years ago

Last modified 4 years ago

#7498 new defect

Items with capital names cannot be assigned a parent group

Reported by: piperad Owned by: cbalan
Priority: normal Component: MenusPlugin
Severity: normal Keywords:
Cc: thm 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 (3)

comment:1 Changed 4 years ago by rjollos

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 4 years ago by thm

  • Cc thm added; anonymous removed

Marked #4292 as a duplicate.

comment:3 Changed 4 years ago by bobbysmith007

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

Add Comment

Modify Ticket

Action
as new The owner will remain cbalan.
Author


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

 
Note: See TracTickets for help on using tickets.