From c55400fb5fdef96433e11b492e57a4723892d91a Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Mon, 14 Mar 2016 12:49:41 -0400 Subject: Bug 1255272 - Adding a flag via the MozReview batch-attachment API doesn't CC the user --- extensions/MozReview/lib/WebService.pm | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-24-g4f1b