diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-03-14 17:49:41 +0100 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-03-14 17:49:41 +0100 |
commit | c55400fb5fdef96433e11b492e57a4723892d91a (patch) | |
tree | 16d7524cc4f3ad1635aed0419201bf4284ee3adb /extensions/MozReview | |
parent | 3c360d80785b076c143ad350acb8e02b3833a0b4 (diff) | |
download | bugzilla-c55400fb5fdef96433e11b492e57a4723892d91a.tar.gz bugzilla-c55400fb5fdef96433e11b492e57a4723892d91a.tar.xz |
Bug 1255272 - Adding a flag via the MozReview batch-attachment API doesn't CC the user
Diffstat (limited to 'extensions/MozReview')
-rw-r--r-- | extensions/MozReview/lib/WebService.pm | 3 |
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 |