Author: spadkins
Date: Thu Mar 1 13:19:26 2007
New Revision: 9189
Modified:
p5ee/trunk/App-Widget/lib/App/Widget.pm
Log:
value_domain format will now format a list of values
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 Thu Mar 1 13:19:26 2007
@@ -610,7 +610,16 @@
my $context = App->context();
my $value_domain = $context->value_domain($format_options->{domain});
my $labels = $value_domain->labels();
- $formatted_value = $labels->{$value};
+
+ my $fvalue;
+ foreach (split (",", $value)) {
+ $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.