From cc69d134483d1e10423475735b1084535dd075b7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 12 Aug 2006 06:45:07 +0000 Subject: Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new Patch By Max Kanat-Alexander r=LpSolit, a=myk --- editflagtypes.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editflagtypes.cgi') diff --git a/editflagtypes.cgi b/editflagtypes.cgi index e7b0908b5..1164177f5 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -393,7 +393,7 @@ sub update { undef, $id); foreach my $flag (@$flags) { my ($flag_id, $bug_id, $attach_id) = @$flag; - my $bug = new Bugzilla::Bug($bug_id, $user->id); + my $bug = new Bugzilla::Bug($bug_id); my $attachment = $attach_id ? Bugzilla::Attachment->get($attach_id) : undef; Bugzilla::Flag::clear($flag_id, $bug, $attachment); } @@ -412,7 +412,7 @@ sub update { undef, $id); foreach my $flag (@$flags) { my ($flag_id, $bug_id, $attach_id) = @$flag; - my $bug = new Bugzilla::Bug($bug_id, $user->id); + my $bug = new Bugzilla::Bug($bug_id); my $attachment = $attach_id ? Bugzilla::Attachment->get($attach_id) : undef; Bugzilla::Flag::clear($flag_id, $bug, $attachment); } @@ -680,4 +680,4 @@ sub filter_group { || ($_->request_group && $_->request_group->id == $gid)} @$flag_types; return \@flag_types; -} \ No newline at end of file +} -- cgit v1.2.3-24-g4f1b