[Jifty-commit] r3310 - in jifty/trunk: lib/Jifty/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed May 30 21:43:44 EDT 2007
Author: jesse
Date: Wed May 30 21:43:43 2007
New Revision: 3310
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Action/Record.pm
Log:
r57805 at pinglin: jesse | 2007-05-30 20:40:51 -0500
When we convert a model into an action, don't deref and then reref the array of possible valid values. We lose any attempt at possible magic that we might have.
Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm Wed May 30 21:43:43 2007
@@ -168,7 +168,7 @@
$render_as = defined $render_as ? lc($render_as) : '';
if ( defined (my $valid_values = $column->valid_values)) {
- $info->{valid_values} = [ @$valid_values ];
+ $info->{valid_values} = $valid_values;
$info->{render_as} = 'Select';
} elsif ( defined $column->type && $column->type =~ /^bool/i ) {
$info->{render_as} = 'Checkbox';
More information about the Jifty-commit
mailing list