Author: spadkins
Date: Mon Mar 12 13:10:49 2007
New Revision: 9237
Modified:
p5ee/trunk/App-Widget/lib/App/Widget.pm
Log:
Fixed bug with multiple values in sub format
Modified: p5ee/trunk/App-Widget/lib/App/Widget.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget.pm (original)
+++ p5ee/trunk/App-Widget/lib/App/Widget.pm Mon Mar 12 13:10:49 2007
@@ -613,13 +613,13 @@
my $fvalue;
foreach (split (",", $value)) {
- $fvalue .= "$labels->{$_}, ";
+ if ($labels->{$_} ne "") {
+ $fvalue .= "$labels->{$_}, ";
+ }
}
$fvalue =~ s/,\s$//;
$formatted_value = $fvalue;
- #$formatted_value = $labels->{$value};
-
$formatted_value = $value if (!defined $formatted_value);
}
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.