Ticket #7465 (closed defect: fixed)
New custom ticket fields are set incorrectly on old tickets
| Reported by: | nikolaus.wittenstein@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11.2 |
| Component: | ticket system | Version: | 0.12dev |
| Severity: | minor | Keywords: | ticket custom patch |
| Cc: | remy.blank@… |
Description
If I create a new checkbox field in trac.ini like so:
test_checkbox = checkbox test_checkbox.label = Test checkbox test_checkbox.value = 1 test_checkbox.order = -1
then for all new tickets the value is correctly set to 1 (checked). However, on old tickets when the page loads (i.e. /ticket/#) the fields are only populated if they're already set on the ticket. This means that the test checkbox doesn't get set at all, so it stays unchecked. Then when the ticket it saved, unchecked isn't equal to no value, so the custom checkbox gets updated to unchecked even though I didn't change its value at all. I'm running Trac 0.12dev-r7331, if it matters.


