- when updating BT tickets, the note data must be cleared in order to not update all the tickets in the ticket. WTF is MantisBT smoking?

Fri, 03 Oct 2014 21:44:42 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Fri, 03 Oct 2014 21:44:42 +0300
changeset 36
543d7a5e3b8b
parent 35
237e82bcd02f
child 37
3399d716b3ae

- when updating BT tickets, the note data must be cleared in order to not update all the tickets in the ticket. WTF is MantisBT smoking?

cobalt.py file | annotate | diff | comparison | revisions
--- a/cobalt.py	Mon Sep 29 12:22:26 2014 +0300
+++ b/cobalt.py	Fri Oct 03 21:44:42 2014 +0300
@@ -421,6 +421,9 @@
 			#done
 
 			if need_update:
+				# We need to remove the note data, otherwise the ticket notes
+				# will get unnecessary updates. WTF, MantisBT?
+				ticket_data.notes = []
 				suds_client.service.mc_issue_update (g_config['trackeruser'], g_config['trackerpassword'], ticket_id, ticket_data)
 			#fi
 

mercurial