Commit 685d0e4e authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 365593: bz_webservices_demo.pl does not match the API as defined in the…

Bug 365593: bz_webservices_demo.pl does not match the API as defined in the Webservices code - Patch by Mads Bondo Dydensborg <mbd@dbc.dk> r=mkanat a=myk
parent f831ad08
......@@ -212,12 +212,12 @@ The call will return a C<Bugzilla::Bug> object.
=cut
if ($bug_id) {
$soapresult = $proxy->call('Bug.get_bug', { ids => [$bug_id] });
$soapresult = $proxy->call('Bug.get_bugs', { ids => [$bug_id] });
_die_on_fault($soapresult);
$result = $soapresult->result;
foreach (keys(%$result)) {
print "$_: $$result{$_}\n";
my $bug = $result->{bugs}->[0];
foreach (keys(%$bug)) {
print "$_: $$bug{$_}\n";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment