Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3642 closed defect (duplicate)

Error Creating Custom Ticket Fields

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Using 0.10b1..

Adding the following to trac.ini:

[ticket-custom]
custom_1 = select
custom_1.label Module
custom_1.options All|Catalog Front|Administration Tool|Installation Module
custom_1.value 0

Created the following error:

arsingError: File contains parsing errors: /home/svn/trac/conf/trac.ini [line 90]: 'custom_1.label Module\n' [line 91]: 'custom_1.options All|Catalog Front|Administration Tool|Installation Module\n' [line 92]: 'custom_1.value 0\n' 
      append = <bound method ParsingError.append of File contai...ation Module\n' [line 92]: 'custom_1.value 0\n'> 
      args = ('File contains parsing errors: /home/svn/trac/conf/trac.ini',) 
      errors = [(90, r"'custom_1.label Module\n'"), (91, r"'custom_1.options All|Catalog Front|Administration Tool|Installation Module\n'"), (92, r"'custom_1.value 0\n'")] 
      filename = '/home/svn/trac/conf/trac.ini' 
      message = "File contains parsing errors: /home/svn/trac/con...lation Module\\n'\n\t[line 92]: 'custom_1.value 0\\n'"

Looking closer at TracTicketsCustomFields shows that no "label" field is available for "select", even though it is shown as an example below it.. removing the "label" line produced a similar error.

After removing the lines from trac.ini I am left with am empty select pull down menu on the new ticket page. My second issue is how can this empty box be removed?

Thanks for your time! I hope this fixes another bug for the final 0.10 release!

Attachments (0)

Change History (3)

comment:1 by anonymous, 14 years ago

Update: the emty pull down menu seems to have automagically removed itself after a minute..

comment:2 by Matthew Good, 14 years ago

Resolution: duplicate
Status: newclosed

The parsing error is because you didn't put an "=" between the settings and their values.

Regarding deleting custom fields see #2099. Currently removing the custom field settings isn't picked up until the server is restarted.

comment:3 by anonymous, 14 years ago

Thanks for the clarification. I do not believe I had overlooked that. Thanks for your time on this, it is much appreciated.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.