diff options
author | mkanat%bugzilla.org <> | 2006-08-12 06:45:07 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-08-12 06:45:07 +0000 |
commit | cc69d134483d1e10423475735b1084535dd075b7 (patch) | |
tree | 4e440861d3302bdacea97fd64ae477acf12bd6d8 /attachment.cgi | |
parent | Bug 310753: editflagtypes.cgi page fails w3 validation - Patch by victory(_RS... (diff) | |
download | bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.gz bugzilla-cc69d134483d1e10423475735b1084535dd075b7.tar.bz2 bugzilla-cc69d134483d1e10423475735b1084535dd075b7.zip |
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 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/attachment.cgi b/attachment.cgi index 8541e8d5e..6545f149e 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -501,7 +501,7 @@ sub insert ValidateComment(scalar $cgi->param('comment')); my ($timestamp) = Bugzilla->dbh->selectrow_array("SELECT NOW()"); - my $bug = new Bugzilla::Bug($bugid, $user->id); + my $bug = new Bugzilla::Bug($bugid); my $attachid = Bugzilla::Attachment->insert_attachment_for_bug(THROW_ERROR, $bug, $user, $timestamp, \$vars); @@ -652,7 +652,7 @@ sub update Bugzilla::Flag::validate($cgi, $bugid, $attach_id); Bugzilla::FlagType::validate($cgi, $bugid, $attach_id); - my $bug = new Bugzilla::Bug($bugid, $userid); + my $bug = new Bugzilla::Bug($bugid); # Lock database tables in preparation for updating the attachment. $dbh->bz_lock_tables('attachments WRITE', 'flags WRITE' , 'flagtypes READ', 'fielddefs READ', 'bugs_activity WRITE', |