diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-07-07 03:58:10 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-07-07 03:58:10 +0200 |
commit | 814b24fdc9407a741967322041ff817665f8e00b (patch) | |
tree | 8137af19b7fbb04b8966c959f56b78be98b4e404 /Bugzilla/Bug.pm | |
parent | ef414f2b12f7686ad830fb884f69865cdb41f6c0 (diff) | |
download | bugzilla-814b24fdc9407a741967322041ff817665f8e00b.tar.gz bugzilla-814b24fdc9407a741967322041ff817665f8e00b.tar.xz |
Bug 519835: Remove Bugzilla::Product::check_product() in favor of Bugzilla::Product->check()
r=mkanat a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 7d86fe328..ed302a053 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1649,10 +1649,8 @@ sub _check_product { } # Check that the product exists and that the user # is allowed to enter bugs into this product. - Bugzilla->user->can_enter_product($name, THROW_ERROR); - # can_enter_product already does everything that check_product - # would do for us, so we don't need to use it. - return new Bugzilla::Product({ name => $name }); + my $product = Bugzilla->user->can_enter_product($name, THROW_ERROR); + return $product; } sub _check_priority { |