summaryrefslogtreecommitdiffstats
path: root/bugzilla/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla/base.py')
-rw-r--r--bugzilla/base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bugzilla/base.py b/bugzilla/base.py
index 6fb8f89..18da60a 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -713,6 +713,10 @@ class Bug(object):
desc = self.short_short_desc
else:
desc = self.short_desc
+ # Some BZ3 implementations give us an ID instead of a name.
+ if 'assigned_to' not in self.__dict__:
+ if 'assigned_to_id' in self.__dict__:
+ self.assigned_to = self.bugzilla._getuserforid(self.assigned_to_id)
return "#%-6s %-10s - %s - %s" % (self.bug_id,self.bug_status,
self.assigned_to,desc)
def __repr__(self):