diff options
author | mkanat%bugzilla.org <> | 2006-08-12 08:45:07 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-08-12 08:45:07 +0200 |
commit | cc69d134483d1e10423475735b1084535dd075b7 (patch) | |
tree | 4e440861d3302bdacea97fd64ae477acf12bd6d8 /editflagtypes.cgi | |
parent | b7358c827a981c240e925b5a547dfb7bcdfc6738 (diff) | |
download | bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.gz bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.xz |
Bug 348057: Move the checks for bug visibility out of Bugzilla::Bug->new
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
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 +} |