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. ...@@ -212,12 +212,12 @@ The call will return a C<Bugzilla::Bug> object.
=cut =cut
if ($bug_id) { 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); _die_on_fault($soapresult);
$result = $soapresult->result; $result = $soapresult->result;
my $bug = $result->{bugs}->[0];
foreach (keys(%$result)) { foreach (keys(%$bug)) {
print "$_: $$result{$_}\n"; 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