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

git-svn-id: svn://10.0.0.236/trunk@217891 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com 2007-01-06 14:20:16 +00:00
parent 36afa0208a
commit ad165dafb7

View File

@ -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";
}
}