summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Schöning <tschoening@am-soft.de>2012-11-20 17:50:17 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-11-20 17:50:17 +0100
commit569fdbba8b711b7cbd13effc825265220d5a53c5 (patch)
treee5980b7507549b49bc0c0c6346dfb230bff233e5
parent442d6df4683b7219738bb799a3650dd8b9c8431f (diff)
downloadbugzilla-569fdbba8b711b7cbd13effc825265220d5a53c5.tar.gz
bugzilla-569fdbba8b711b7cbd13effc825265220d5a53c5.tar.xz
Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists)
r/a=LpSolit
-rwxr-xr-xcontrib/bz_webservice_demo.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl
index 104151d85..3ef81489b 100755
--- a/contrib/bz_webservice_demo.pl
+++ b/contrib/bz_webservice_demo.pl
@@ -287,20 +287,20 @@ if ($bug_id) {
=head2 Retrieving Product Information
-Call C<Product.get_product> with the name of the product you want to know more
-of.
+Call C<Product.get> with the name of the product you want to know more of.
The call will return a C<Bugzilla::Product> object.
=cut
if ($product_name) {
- $soapresult = $proxy->call('Product.get_product', $product_name);
+ $soapresult = $proxy->call('Product.get', {'names' => [$product_name]});
_die_on_fault($soapresult);
$result = $soapresult->result;
if (ref($result) eq 'HASH') {
+ $result = $result->{'products'}->[0];
foreach (keys(%$result)) {
- print "$_: $$result{$_}\n";
+ print "$_: $result->{$_}\n";
}
}
else {