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 --- buglist.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 1ae9f84a7..2d4e323b2 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -562,8 +562,8 @@ elsif (($cgi->param('cmdtype') eq "doit") && defined $cgi->param('remtype')) { my $changes = 0; foreach my $bug_id (split(/[\s,]+/, $cgi->param('bug_ids'))) { next unless $bug_id; - ValidateBugID($bug_id); - $bug_ids{$bug_id} = $keep_bug; + my $bug = Bugzilla::Bug->check($bug_id); + $bug_ids{$bug->id} = $keep_bug; $changes = 1; } ThrowUserError('no_bug_ids', -- cgit v1.2.3-24-g4f1b