Modify ↓
Opened 20 years ago
Closed 20 years ago
#1544 closed defect (fixed)
change/restore ticket field leads to adding fake ticket change
Reported by: | pkou at ua.fm | Owned by: | Christopher Lenz |
---|---|---|---|
Priority: | normal | Milestone: | 0.9 |
Component: | ticket system | Version: | 0.8 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When ticket field is changed, then original value is saved for tracking ticket changes. However, if a field is changed to some value and then to original value, then this change is tracked.
Patch for trunk:
Index: Ticket.py =================================================================== --- Ticket.py (revision 1667) +++ Ticket.py (working copy) @@ -53,6 +53,8 @@ return if not self._old.has_key(name): self._old[name] = self.get(name, None) + else if self._old[name] == value: + del self._old[name] dict.__setitem__(self, name, value) def _forget_changes(self):
(In preparation to #869)
Attachments (0)
Change History (3)
comment:1 by , 20 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 20 years ago
Note:
See TracTickets
for help on using tickets.
Heh,
else if
doesn't really work in python ;-)