Commit de1fd5b0 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Fix bustage due to bug 453743: I have to exclude flags related to private…

Fix bustage due to bug 453743: I have to exclude flags related to private attachments you cannot see
parent a84d94e0
......@@ -577,6 +577,9 @@ sub get_attachments_by_bug {
my $flags = Bugzilla::Flag->match({ bug_id => $bug_id,
target_type => 'attachment' });
# Exclude flags for private attachments you cannot see.
@$flags = grep {exists $att{$_->attach_id}} @$flags;
push(@{$att{$_->attach_id}->{flags}}, $_) foreach @$flags;
$attachments = [sort {$a->id <=> $b->id} values %att];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment