[Jifty-commit] r2436 - in jifty/trunk: lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Dec 29 12:25:07 EST 2006
Author: alexmv
Date: Fri Dec 29 12:25:06 2006
New Revision: 2436
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web/Form/Field.pm
Log:
r15145 at zoq-fot-pik: chmrr | 2006-12-29 12:25:05 -0500
* Need to be able to set an empty hint (which is false!)
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Fri Dec 29 12:25:06 2006
@@ -252,10 +252,9 @@
sub hints {
my $self = shift;
- my $hint = shift;
-
- return $self->_hints_accessor unless $hint;
+ return $self->_hints_accessor unless @_;
+ my $hint = shift;
# people sometimes say hints are "foo" rather than hints is "foo"
if (ref $hint eq 'ARRAY') {
$hint = shift @$hint;
More information about the Jifty-commit
mailing list