[Jifty-commit] r1461 - in jifty/trunk: lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jul 3 16:29:10 EDT 2006
Author: trs
Date: Mon Jul 3 16:29:10 2006
New Revision: 1461
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Action.pm
Log:
r13662 at zot: tom | 2006-07-03 16:28:57 -0400
Only return the canonicalized value if it's not the same as the one we got. This fixes the problem of selecting a date via the calendar widget and having it revert.
Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm (original)
+++ jifty/trunk/lib/Jifty/Action.pm Mon Jul 3 16:29:10 2006
@@ -737,7 +737,7 @@
my $val = shift;
return undef unless defined $val and $val =~ /\S/;
return undef unless my $obj = Jifty::DateTime->new_from_string($val);
- return $obj->ymd;
+ return $obj->ymd eq $val ? undef : $obj->ymd;
}
=head2 _validate_arguments
More information about the Jifty-commit
mailing list