Commits

osimons  committed f89186e

[svn r6055] XmlRpcPlugin: Fix for possible ticket update race condition. Closes #3772.

Thanks to mstone for report and patch.

  • Participants
  • Parent commits 6aab3ca

Comments (0)

Files changed (1)

File trunk/tracrpc/ticket.py

                     "has no workflow 'action'." % (id, req.authname))
             for k, v in attributes.iteritems():
                 t[k] = v
-            t.save_changes(req.authname, comment)
+            t.save_changes(req.authname, comment, when=now)
         else:
             ts = TicketSystem(self.env)
             tm = TicketModule(self.env)
             else:
                 tm._apply_ticket_changes(t, changes)
                 self.log.debug("Rpc ticket.update save: %s" % repr(t.values))
-                t.save_changes(req.authname, comment)
+                t.save_changes(req.authname, comment, when=now)
                 # Apply workflow side-effects
                 for controller in controllers:
                     controller.apply_action_side_effects(req, t, action)