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 --- Bugzilla/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index bc50ccff4..364f5730c 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2312,7 +2312,7 @@ sub flag_types { 'component_id' => $self->{'component_id'} }); foreach my $flag_type (@$flag_types) { - $flag_type->{'flags'} = Bugzilla::Flag::match( + $flag_type->{'flags'} = Bugzilla::Flag->match( { 'bug_id' => $self->bug_id, 'type_id' => $flag_type->{'id'}, 'target_type' => 'bug' }); @@ -2432,7 +2432,7 @@ sub show_attachment_flags { { 'target_type' => 'attachment', 'product_id' => $self->{'product_id'}, 'component_id' => $self->{'component_id'} }); - my $num_attachment_flags = Bugzilla::Flag::count( + my $num_attachment_flags = Bugzilla::Flag->count( { 'target_type' => 'attachment', 'bug_id' => $self->bug_id }); -- cgit v1.2.3-24-g4f1b