[freeside-commits] freeside/FS/FS/part_event Condition.pm, 1.10, 1.11
Ivan,,,
ivan at wavetail.420.am
Thu Aug 4 20:27:17 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_event
In directory wavetail.420.am:/tmp/cvs-serv26546
Modified Files:
Condition.pm
Log Message:
fix billday condition without a delay option causing the event to never run, RT#13915
Index: Condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- Condition.pm 15 Apr 2011 18:06:34 -0000 1.10
+++ Condition.pm 5 Aug 2011 03:27:14 -0000 1.11
@@ -469,7 +469,10 @@
my $integer = ($driver_name =~ /^mysql/) ? 'UNSIGNED INTEGER' : 'INTEGER';
- 'CAST('. $class->condition_sql_option($option). " AS $integer )";
+ 'CAST(
+ COALESCE('. $class->condition_sql_option($option).
+ " ,'0') ".
+ " AS $integer )";
}
=head1 NEW CONDITION CLASSES
More information about the freeside-commits
mailing list