Commit cc991346 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 382060: contrib/bz_webservice_demo.pl is unable to display bug data…

Bug 382060: contrib/bz_webservice_demo.pl is unable to display bug data correctly - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 54c992f7
...@@ -224,8 +224,16 @@ if ($bug_id) { ...@@ -224,8 +224,16 @@ if ($bug_id) {
_die_on_fault($soapresult); _die_on_fault($soapresult);
$result = $soapresult->result; $result = $soapresult->result;
my $bug = $result->{bugs}->[0]; my $bug = $result->{bugs}->[0];
foreach (keys(%$bug)) { foreach my $field (keys(%$bug)) {
print "$_: $$bug{$_}\n"; my $value = $bug->{$field};
if (ref($value) eq 'HASH') {
foreach (keys %$value) {
print "$_: " . $value->{$_} . "\n";
}
}
else {
print "$field: $value\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