[Jifty-commit] r2286 - jifty/trunk/lib/Jifty/Action/Record
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Dec 3 03:04:40 EST 2006
Author: audreyt
Date: Sun Dec 3 03:04:40 2006
New Revision: 2286
Modified:
jifty/trunk/lib/Jifty/Action/Record/Search.pm
Log:
* Jifty::Action::Record::Search - "numeric" and "decimal" fields are also numeric.
Modified: jifty/trunk/lib/Jifty/Action/Record/Search.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record/Search.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record/Search.pm Sun Dec 3 03:04:40 2006
@@ -38,7 +38,7 @@
Create C<field>_before and C<field>_after arguments
-=item C<integer>, C<float> or C<double> fields
+=item C<integer>, C<float>, C<double>, C<decimal> or C<numeric> fields
Generate C<field>_lt and C<field>_gt arguments
@@ -105,7 +105,7 @@
} elsif($type =~ /(?:date|time)/) {
$args->{"${field}_after"} = { %$info, label => _("%1 after", $label) };
$args->{"${field}_before"} = { %$info, label => _("%1 before", $label) };
- } elsif( $type =~ /(?:int|float|double)/
+ } elsif( $type =~ /(?:int|float|double|decimal|numeric)/
&& !$column->refers_to) {
$args->{"${field}_gt"} = { %$info, label => _("%1 greater than", $label) };
$args->{"${field}_lt"} = { %$info, label => _("%1 less than", $label) };
More information about the Jifty-commit
mailing list