#2748: Custom field labels not displaying
----------------------------+-----------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  jonas    
     Type:  defect          |       Status:  closed   
 Priority:  high            |    Milestone:           
Component:  ticket system   |      Version:  0.9.3    
 Severity:  normal          |   Resolution:  duplicate
 Keywords:                  |  
----------------------------+-----------------------------------------------
Changes (by cmlenz):

  * status:  new => closed
  * resolution:  => duplicate

Old description:

> When I assign a label for my custom fields it does not get displayed.
>
> I traced this to line 113 of tickets/api.py. The call to self.config.get
> always returns the last parameter (default value?) rather than the actual
> value from the trac.ini file. If you replace the original line with the
> new one below then the labels start working.
>
> Original line:
>  'label': self.config.get('ticket-custom', name + '.label', '')
>
> New line:
>  'label': self.config.get('ticket-custom', name + '.label')

New description:

 When I assign a label for my custom fields it does not get displayed.

 I traced this to line 113 of tickets/api.py. The call to self.config.get
 always returns the last parameter (default value?) rather than the actual
 value from the trac.ini file. If you replace the original line with the
 new one below then the labels start working.

 Original line:
 {{{
  'label': self.config.get('ticket-custom', name + '.label', '')
 }}}
 New line:
 {{{
  'label': self.config.get('ticket-custom', name + '.label')
 }}}

Comment:

 Have you configured that field in the global TracIni? In that case, this
 is a duplicate of #2324 and has been fixed for [milestone:0.9.4] (due in a
 few days). Please reopen if it's not fixed in that release.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2748>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to