[freeside-commits] freeside/FS/FS part_event_condition.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Thu Oct 4 14:38:57 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv21142
Modified Files:
part_event_condition.pm
Log Message:
add SKIP_CONDITION_SQL debugging aid
Index: part_event_condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event_condition.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- part_event_condition.pm 1 Aug 2007 22:24:36 -0000 1.1
+++ part_event_condition.pm 4 Oct 2007 21:38:52 -0000 1.2
@@ -1,7 +1,7 @@
package FS::part_event_condition;
use strict;
-use vars qw( @ISA $DEBUG );
+use vars qw( @ISA $DEBUG @SKIP_CONDITION_SQL );
use FS::UID qw(dbh);
use FS::Record qw( qsearch qsearchs );
use FS::option_Common;
@@ -10,6 +10,8 @@
@ISA = qw( FS::option_Common ); # FS::Record );
$DEBUG = 0;
+ at SKIP_CONDITION_SQL = ();
+
=head1 NAME
FS::part_event_condition - Object methods for part_event_condition records
@@ -283,7 +285,10 @@
die "$coderef is not a CODEREF" unless ref($coderef) eq 'CODE';
"( cond_$conditionname.conditionname IS NULL OR $sql )";
}
- keys %conditions
+ grep { my $cond = $_;
+ ! grep { $_ eq $cond } @SKIP_CONDITION_SQL
+ }
+ keys %conditions
);
$where;
More information about the freeside-commits
mailing list