[freeside-commits] freeside/FS/FS/part_event Condition.pm, 1.7, 1.7.2.1
Mark Wells
mark at wavetail.420.am
Thu Mar 24 16:25:10 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_event
In directory wavetail.420.am:/tmp/cvs-serv1427
Modified Files:
Tag: FREESIDE_2_1_BRANCH
Condition.pm
Log Message:
fix data type issue, #11834
Index: Condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition.pm,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -w -d -r1.7 -r1.7.2.1
--- Condition.pm 19 Sep 2010 03:02:09 -0000 1.7
+++ Condition.pm 24 Mar 2011 23:25:08 -0000 1.7.2.1
@@ -457,6 +457,18 @@
}
+=item condition_sql_option_integer
+
+As I<condition_sql_option>, but cast the option value to an integer so that
+comparison to other integers is type-correct.
+
+=cut
+
+sub condition_sql_option_integer {
+ my ($class, $option) = @_;
+ 'CAST ('.$class->condition_sql_option($option).' AS INTEGER)';
+}
+
=head1 NEW CONDITION CLASSES
A module should be added in FS/FS/part_event/Condition/ which implements the
More information about the freeside-commits
mailing list