summaryrefslogtreecommitdiffstats
path: root/extensions/MozReview
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/MozReview')
-rw-r--r--extensions/MozReview/lib/WebService.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/MozReview/lib/WebService.pm b/extensions/MozReview/lib/WebService.pm
index 24ae5cb5f..947e65815 100644
--- a/extensions/MozReview/lib/WebService.pm
+++ b/extensions/MozReview/lib/WebService.pm
@@ -81,6 +81,9 @@ sub attachments {
ThrowUserError("mozreview_attachment_bug_mismatch", { bug => $bug, attachment => $attachment_obj })
if $attachment_obj->bug_id != $bug->id;
+ # HACK: preload same bug object.
+ $attachment_obj->{bug} = $bug;
+
$attachment = translate($attachment, Bugzilla::WebService::Bug::ATTACHMENT_MAPPED_SETTERS);
my ($update_flags, $new_flags) = $flags