Edgewall Software

Ticket #1544 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

change/restore ticket field leads to adding fake ticket change

Reported by: pkou at ua.fm Owned by: cmlenz
Priority: normal Milestone: 0.9
Component: ticket system Version: 0.8
Severity: trivial Keywords:
Cc:

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

Change History

Changed 4 years ago by cmlenz

  • owner changed from jonas to cmlenz
  • status changed from new to assigned

Changed 4 years ago by cmlenz

Heh, else if doesn't really work in python ;-)

Changed 4 years ago by cmlenz

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [1668].

Add/Change #1544 (change/restore ticket field leads to adding fake ticket change)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.