[Jifty-commit] r5114 - jifty/trunk/lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Fri Feb 15 03:55:25 EST 2008
Author: clkao
Date: Fri Feb 15 03:55:23 2008
New Revision: 5114
Modified:
jifty/trunk/lib/Jifty/Action.pm
Log:
Fix a bug that if you use
$action->form_field('foo');
$action->form_field('foo', render_as => 'hidden')
you get a ::hidden object which is useless, as opposed to normal
Hidden object which returns from the following without cache:
$action->form_field('foo', render_as => 'hidden')
Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm (original)
+++ jifty/trunk/lib/Jifty/Action.pm Fri Feb 15 03:55:23 2008
@@ -526,7 +526,7 @@
# Rebless the form control as something else
bless $self->{_private_form_fields_hash}{$arg_name},
- "Jifty::Web::Form::Field::$args{render_as}";
+ "Jifty::Web::Form::Field::".ucfirst($args{render_as});
}
return $self->{_private_form_fields_hash}{$arg_name};
More information about the Jifty-commit
mailing list