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 --- email_in.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'email_in.pl') diff --git a/email_in.pl b/email_in.pl index 12be24471..742b84f5f 100644 --- a/email_in.pl +++ b/email_in.pl @@ -41,7 +41,7 @@ use Pod::Usage; use Encode; use Bugzilla; -use Bugzilla::Bug qw(ValidateBugID); +use Bugzilla::Bug; use Bugzilla::Constants qw(USAGE_MODE_EMAIL); use Bugzilla::Error; use Bugzilla::Mailer; @@ -172,8 +172,7 @@ sub process_bug { debug_print("Updating Bug $fields{id}..."); - ValidateBugID($bug_id); - my $bug = new Bugzilla::Bug($bug_id); + my $bug = Bugzilla::Bug->check($bug_id); if ($fields{'bug_status'}) { $fields{'knob'} = $fields{'bug_status'}; -- cgit v1.2.3-24-g4f1b