Ticket #716 (closed defect: invalid)
Opened 8 years ago
Last modified 8 years ago
ID value instead of string value displayed for custom radio/select properties
| Reported by: | cmlenz | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8 |
| Component: | ticket system | Version: | devel |
| Severity: | normal | Keywords: | custom properties |
| Cc: | |||
| 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
Change History
comment:1 Changed 8 years ago by cmlenz
comment:2 Changed 8 years ago by Christopher Lenz <cmlenz@…>
- Resolution set to invalid
- Status changed from new to closed
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.



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.