[freeside-commits] freeside/FS/FS/part_event Condition.pm,1.7,1.8

Mark Wells mark at wavetail.420.am
Thu Mar 24 16:24:57 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/part_event
In directory wavetail.420.am:/tmp/cvs-serv1369

Modified Files:
	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.8
diff -u -w -d -r1.7 -r1.8
--- Condition.pm	19 Sep 2010 03:02:09 -0000	1.7
+++ Condition.pm	24 Mar 2011 23:24:54 -0000	1.8
@@ -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