From 845aacfb3652a18ef12828628e68180591f6baf6 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 24 Aug 2007 02:31:19 +0000 Subject: Bug 373440: Make "check" into a generic function in Bugzilla::Object Patch By Max Kanat-Alexander r=LpSolit, 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 0a2770a65..33bec5f71 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1282,7 +1282,7 @@ sub add_cc { my ($self, $user_or_name, $product) = @_; return if !$user_or_name; my $user = ref $user_or_name ? $user_or_name - : Bugzilla::User::check($user_or_name); + : Bugzilla::User->check($user_or_name); my $product_id = $product ? $product->id : $self->{product_id}; if (Bugzilla->params->{strict_isolation} @@ -1301,7 +1301,7 @@ sub add_cc { sub remove_cc { my ($self, $user_or_name) = @_; my $user = ref $user_or_name ? $user_or_name - : Bugzilla::User::check($user_or_name); + : Bugzilla::User->check($user_or_name); my $cc_users = $self->cc_users; @$cc_users = grep { $_->id != $user->id } @$cc_users; } -- cgit v1.2.3-24-g4f1b