From c1ca86053ed276aa05eac8468cea61785629ac5e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 30 Jun 2008 02:57:54 +0000 Subject: Bug 440612 – Use Bugzilla::Bug->check everywhere instead of ValidateBugID Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enter_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index ee362e302..9ee58ea53 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -350,8 +350,8 @@ my $has_canconfirm = $user->in_group('canconfirm', $product->id); $cloned_bug_id = $cgi->param('cloned_bug_id'); if ($cloned_bug_id) { - ValidateBugID($cloned_bug_id); - $cloned_bug = new Bugzilla::Bug($cloned_bug_id); + $cloned_bug = Bugzilla::Bug->check($cloned_bug_id); + $cloned_bug_id = $cloned_bug->id; } if (scalar(@{$product->components}) == 1) { -- cgit v1.2.3-24-g4f1b