X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event_condition.pm;h=200d4fcd6bee70294b886df068bfd56c828d6228;hb=8b33800764316232933f5996ac3fe9ea1793d944;hp=1efd0f8793c801cef36efd23007dd13fc8b1598e;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/FS/FS/part_event_condition.pm b/FS/FS/part_event_condition.pm index 1efd0f879..200d4fcd6 100644 --- a/FS/FS/part_event_condition.pm +++ b/FS/FS/part_event_condition.pm @@ -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 @@ use FS::part_event; #for order_conditions_sql... @ISA = qw( FS::option_Common ); # FS::Record ); $DEBUG = 0; +@SKIP_CONDITION_SQL = (); + =head1 NAME FS::part_event_condition - Object methods for part_event_condition records @@ -283,7 +285,10 @@ sub where_conditions_sql { 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;