Modify ↓
#11891 closed defect (fixed)
Entry is stored in ticket change table when whitespace change in text field
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | low | Milestone: | 1.0.3 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Text fields with whitespace changes are not stored in the |
||
API Changes: | |||
Internal Changes: |
Description
To reproduce:
- Change the value of any field, e.g. change milestone field from
milestone1
tomilestone2
. - Add whitespace to the value of a text field, e.g. change keyword field from
kw1
→kw1
.
sqlite> SELECT oldvalue, newvalue FROM ticket_change WHERE time=1419227103370485; kw1|kw1 milestone1|milestone2 9|
The value is not displayed in the ticket changelog because old == new
is filtered out: tags/trac-1.0.2/trac/ticket/web_ui.py@:1829#L1783. The change is not saved in the changelog unless another field is also changed because the changes are discarded if all props are unchanged: tags/trac-1.0.2/trac/ticket/model.py@:277-280#L260.
Attachments (0)
Change History (3)
comment:1 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
follow-up: 3 comment:2 by , 10 years ago
comment:3 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
Committed to 1.0-stable in [13553], merged to trunk in [13554].