diff options
author | mkanat%bugzilla.org <> | 2007-08-24 04:31:19 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-08-24 04:31:19 +0200 |
commit | 845aacfb3652a18ef12828628e68180591f6baf6 (patch) | |
tree | 32f462212ee80be748c073f221489d4a935f1aea /Bugzilla/Bug.pm | |
parent | d721954afb4458f240d3be8e020c619c57c9c1ed (diff) | |
download | bugzilla-845aacfb3652a18ef12828628e68180591f6baf6.tar.gz bugzilla-845aacfb3652a18ef12828628e68180591f6baf6.tar.xz |
Bug 373440: Make "check" into a generic function in Bugzilla::Object
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-x | Bugzilla/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |