From 7f16a9065617dd087712f9daad630967f4695585 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 4 Feb 2008 18:23:47 +0000 Subject: Bug 413772: Eliminate sqlify_criteria() in Bugzilla::Flag and replace match() there with Bugzilla::Object::match() - Patch by Max Kanat-Alexander r/a=LpSolit --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index 65a8aa539..449abde65 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -423,7 +423,7 @@ sub edit { 'product_id' => $product_id , 'component_id' => $component_id }); foreach my $flag_type (@$flag_types) { - $flag_type->{'flags'} = Bugzilla::Flag::match({ 'type_id' => $flag_type->id, + $flag_type->{'flags'} = Bugzilla::Flag->match({ 'type_id' => $flag_type->id, 'attach_id' => $attachment->id }); } $vars->{'flag_types'} = $flag_types; @@ -529,7 +529,7 @@ sub update { # to attachments so that we can delete pending requests if the user # is obsoleting this attachment without deleting any requests # the user submits at the same time. - Bugzilla::Flag::process($bug, $attachment, $timestamp, $cgi, $vars); + Bugzilla::Flag->process($bug, $attachment, $timestamp, $cgi, $vars); # Update the attachment record in the database. $dbh->do("UPDATE attachments -- cgit v1.2.3-24-g4f1b