Skip to content

Commit 468238a

Browse files
btlogycrobinso
authored andcommitted
Work around Bugzilla 4 no longer returning creator field
As documented in bz#1515284, Bugzilla 4 is currently broken. So we need to fallback asking author field as creator field will likely not be returned until Bugzilla 5. Closes: #56 Signed-off-by: Benoit Donneaux <[email protected]>
1 parent 0ee5841 commit 468238a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/bugzilla

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def _format_output(bz, opt, buglist):
687687
val = ""
688688
for c in getattr(b, "comments", []):
689689
val += ("\n* %s - %s:\n%s\n" %
690-
(c['time'], c.get("creator", ""), c['text']))
690+
(c['time'], c.get("creator", c.get("author", "")), c['text']))
691691

692692
elif fieldname == "__unicode__":
693693
val = b.__unicode__()

0 commit comments

Comments
 (0)