]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365593: bz_webservices_demo.pl does not match the API as defined in the Webservic...
authorlpsolit%gmail.com <>
Sat, 6 Jan 2007 22:20:16 +0000 (22:20 +0000)
committerlpsolit%gmail.com <>
Sat, 6 Jan 2007 22:20:16 +0000 (22:20 +0000)
contrib/bz_webservice_demo.pl

index 19bbcc59e7acaa6a7c7fe9f94fd99abe0dac2e19..aa92d1dd992e32d7b27ddcd2e0b71c52982d6620 100755 (executable)
@@ -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";
     }
 }