better pretty-printing for array values
authorivan <ivan>
Tue, 27 Jul 2010 01:57:05 +0000 (01:57 +0000)
committerivan <ivan>
Tue, 27 Jul 2010 01:57:05 +0000 (01:57 +0000)
httemplate/misc/maestro-customer_status-test.html

index 16d4b57..a75b88a 100644 (file)
@@ -7,10 +7,12 @@
 
 <table style="border:1px solid #000000">
 % foreach my $key (keys %$return) {
-  <TR>
-    <TD ALIGN="right"><% $key %>:</TD>
-    <TD><B><% $return->{$key} %></B></TD>
-  </TR>
+%   my $value = $return->{$key};
+%   $value = join(', ', @$value) if ref($value) eq 'ARRAY';
+    <TR>
+      <TD ALIGN="right"><% $key %>:</TD>
+      <TD><B><% $return->{$key} %></B></TD>
+    </TR>
 % }
 </table>