projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
084c341
)
fix billday condition without a delay option causing the event to never run, RT#13915
author
ivan
<ivan>
Fri, 5 Aug 2011 03:27:14 +0000
(
03:27
+0000)
committer
ivan
<ivan>
Fri, 5 Aug 2011 03:27:14 +0000
(
03:27
+0000)
FS/FS/part_event/Condition.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_event/Condition.pm
b/FS/FS/part_event/Condition.pm
index
efe0d3c
..
b624407
100644
(file)
--- a/
FS/FS/part_event/Condition.pm
+++ b/
FS/FS/part_event/Condition.pm
@@
-469,7
+469,10
@@
sub condition_sql_option_integer {
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