From c1ca86053ed276aa05eac8468cea61785629ac5e Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 30 Jun 2008 02:57:54 +0000 Subject: =?UTF-8?q?Bug=20440612=20=C3=A2=C2=80=C2=93=20Use=20Bugzilla::Bug?= =?UTF-8?q?->check=20everywhere=20instead=20of=20ValidateBugID=20Patch=20B?= =?UTF-8?q?y=20Max=20Kanat-Alexander=20=20r=3DLpSolit?= =?UTF-8?q?,=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/WebService/Bug.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index dd866a67b..3323fd5dd 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -123,7 +123,8 @@ sub get_history { my @return; foreach my $bug_id (@$ids) { my %item; - ValidateBugID($bug_id); + my $bug = Bugzilla::Bug->check($bug_id); + $bug_id = $bug->id; my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id); $item{$bug_id} = []; @@ -155,7 +156,6 @@ sub get_history { # alias is returned in case users passes a mixture of ids and aliases # then they get to know which bug activity relates to which value # they passed - my $bug = new Bugzilla::Bug($bug_id); if (Bugzilla->params->{'usebugaliases'}) { $item{alias} = type('string')->value($bug->alias); } -- cgit v1.2.1