diff options
author | mkanat%bugzilla.org <> | 2008-06-30 02:57:54 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-06-30 02:57:54 +0000 |
commit | c1ca86053ed276aa05eac8468cea61785629ac5e (patch) | |
tree | 836d5cae869dc47008b16bccb1de47320a36fcc8 /Bugzilla/WebService | |
parent | 9ed763d945ffe2a468871d4731f3bd001caab21c (diff) | |
download | bugs-c1ca86053ed276aa05eac8468cea61785629ac5e.tar bugs-c1ca86053ed276aa05eac8468cea61785629ac5e.tar.gz bugs-c1ca86053ed276aa05eac8468cea61785629ac5e.tar.bz2 bugs-c1ca86053ed276aa05eac8468cea61785629ac5e.tar.xz bugs-c1ca86053ed276aa05eac8468cea61785629ac5e.zip |
Bug 440612 â Use Bugzilla::Bug->check everywhere instead of ValidateBugID
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-x | Bugzilla/WebService/Bug.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |