You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by rj...@apache.org on 2014/01/23 09:55:10 UTC

svn commit: r1560610 - /bloodhound/trunk/bloodhound_relations/bhrelations/api.py

Author: rjollos
Date: Thu Jan 23 08:55:09 2014
New Revision: 1560610

URL: http://svn.apache.org/r1560610
Log:
0.8dev: Fixed missing space in warning sentence.

Modified:
    bloodhound/trunk/bloodhound_relations/bhrelations/api.py

Modified: bloodhound/trunk/bloodhound_relations/bhrelations/api.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/api.py?rev=1560610&r1=1560609&r2=1560610&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_relations/bhrelations/api.py (original)
+++ bloodhound/trunk/bloodhound_relations/bhrelations/api.py Thu Jan 23 08:55:09 2014
@@ -541,9 +541,10 @@ class TicketRelationsSpecifics(Component
         if 'set_resolution' in operations:
             for relation in [r for r in self.rls.get_relations(ticket)
                              if r['type'] == self.rls.CHILDREN_RELATION_TYPE]:
-                ticket = self._create_ticket_by_full_id(relation['destination'])
-                if ticket['status'] != 'closed':
-                    msg = ("Cannot resolve this ticket because it has open"
+                child_ticket = \
+                    self._create_ticket_by_full_id(relation['destination'])
+                if child_ticket['status'] != 'closed':
+                    msg = ("Cannot resolve this ticket because it has open "
                            "child tickets.")
                     yield None, msg