diff options
author | Thorsten Schöning <tschoening@am-soft.de> | 2012-11-20 17:48:32 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-20 17:48:32 +0100 |
commit | 84ad63d5de2b8b6cf029be6b794730d270901718 (patch) | |
tree | daa953588b0836de91d8298d5afdfca78fa6317f /contrib/bz_webservice_demo.pl | |
parent | Bug 810954: In the "reclassify products" page, form labels are not in bold (diff) | |
download | bugzilla-84ad63d5de2b8b6cf029be6b794730d270901718.tar.gz bugzilla-84ad63d5de2b8b6cf029be6b794730d270901718.tar.bz2 bugzilla-84ad63d5de2b8b6cf029be6b794730d270901718.zip |
Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists)
r/a=LpSolit
Diffstat (limited to 'contrib/bz_webservice_demo.pl')
-rwxr-xr-x | contrib/bz_webservice_demo.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 906db7d2c..32b9e27a1 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -293,20 +293,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 { |