Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 7 years ago

#716 closed defect (invalid)

ID value instead of string value displayed for custom radio/select properties

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

Description

When using TracTicketsCustom to add a custom property of type select or radio, the value of the property as displayed in the ticket info table is not the human-readable string value of the selected option, but rather the integer ID of the selected option.

Attachments (0)

Change History (3)

comment:1 by Christopher Lenz, 15 years ago

I'm slightly wrong about this: It appears that if no value was set for the ticket (for example, because the custom property was added after the ticket was created), the value displayed for the property is the integer value assigned to the property in trac.ini.

After the custom property has been set, the value is displayed correctly.

comment:2 by Christopher Lenz <cmlenz@…>, 15 years ago

Resolution: invalid
Status: newclosed

Maybe this is a misunderstanding on my side, or the sample configuration on TracTicketsCustom is wrong. Apparently you can set the value to the string value of the option that should be selected by default. Setting no default value also has the desired effect.

We need to improve the documentation on custom ticket properties, but I think this ticket is actually invalid. Sorry for the spam.

comment:3 by Christian Boos, 7 years ago

Milestone: 0.8

(clearing report:35)

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.