Author: matevz Date: Thu Sep 5 11:49:48 2013 New Revision: 1520286 URL: http://svn.apache.org/r1520286 Log: Ref. #644 - ticket relation notifications didn't work properly
Modified: bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py Modified: bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py?rev=1520286&r1=1520285&r2=1520286&view=diff ============================================================================== --- bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py (original) +++ bloodhound/trunk/bloodhound_relations/bhrelations/web_ui.py Thu Sep 5 11:49:48 2013 @@ -94,7 +94,7 @@ class RelationManagementModule(Component req.perm.require('TICKET_MODIFY', Resource(dest_ticket.id)) try: - relsys.add(ticket, dest_ticket, + dbrel = relsys.add(ticket, dest_ticket, relation['type'], relation['comment'], req.authname) @@ -107,7 +107,7 @@ class RelationManagementModule(Component # Notify try: - self.notify_relation_changed(relation) + self.notify_relation_changed(dbrel) except Exception, e: self.log.error("Failure sending notification on" "creation of relation: %s",