[freeside-commits] freeside/FS/FS part_event_condition.pm,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Mon Mar 29 19:04:03 PDT 2010
- Previous message: [freeside-commits] freeside/FS/FS/part_event/Action/Mixin - New directory, NONE, NONE
- Next message: [freeside-commits] freeside/FS/FS/part_event/Condition balance_age.pm, 1.3, 1.4 balance.pm, 1.2, 1.3 balance_under.pm, 1.2, 1.3 cust_bill_has_service.pm, 1.5, 1.6 cust_bill_owed.pm, 1.3, 1.4 cust_bill_owed_under.pm, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv25907
Modified Files:
part_event_condition.pm
Log Message:
fixes for MySQL CAST drain bramage
Index: part_event_condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event_condition.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- part_event_condition.pm 5 Oct 2007 00:39:58 -0000 1.3
+++ part_event_condition.pm 30 Mar 2010 02:04:01 -0000 1.4
@@ -2,7 +2,7 @@
use strict;
use vars qw( @ISA $DEBUG @SKIP_CONDITION_SQL );
-use FS::UID qw(dbh);
+use FS::UID qw( dbh driver_name );
use FS::Record qw( qsearch qsearchs );
use FS::option_Common;
use FS::part_event; #for order_conditions_sql...
@@ -285,7 +285,9 @@
map {
my $conditionname = $_;
my $coderef = $conditions{$conditionname}->{condition_sql};
- my $sql = &$coderef( $eventtable, 'time'=>$time );
+ my $sql = &$coderef( $eventtable, 'time' => $time,
+ 'driver_name' => driver_name(),
+ );
die "$coderef is not a CODEREF" unless ref($coderef) eq 'CODE';
"( cond_$conditionname.conditionname IS NULL OR $sql )";
}
- Previous message: [freeside-commits] freeside/FS/FS/part_event/Action/Mixin - New directory, NONE, NONE
- Next message: [freeside-commits] freeside/FS/FS/part_event/Condition balance_age.pm, 1.3, 1.4 balance.pm, 1.2, 1.3 balance_under.pm, 1.2, 1.3 cust_bill_has_service.pm, 1.5, 1.6 cust_bill_owed.pm, 1.3, 1.4 cust_bill_owed_under.pm, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list