summaryrefslogtreecommitdiff
path: root/FS/FS/part_event_condition.pm
diff options
context:
space:
mode:
authorivan <ivan>2007-10-05 00:39:58 +0000
committerivan <ivan>2007-10-05 00:39:58 +0000
commit7349e2c4d087cee96f677dc05e316885386428a7 (patch)
treed330a3ab7544d02c964a0bd728be6b10937435c6 /FS/FS/part_event_condition.pm
parent15802280e2c56575afc85efd476a0d1aeea9e0a4 (diff)
add disable ability to conditions & disable cust_bill_has_service, so the condition edit page renders again
Diffstat (limited to 'FS/FS/part_event_condition.pm')
-rw-r--r--FS/FS/part_event_condition.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_event_condition.pm b/FS/FS/part_event_condition.pm
index 200d4fc..d13e849 100644
--- a/FS/FS/part_event_condition.pm
+++ b/FS/FS/part_event_condition.pm
@@ -191,6 +191,10 @@ foreach my $INC ( @INC ) {
#warn "error using $fullmod (skipping): $@\n" if $@;
#next;
}
+ if ( $fullmod->disabled ) {
+ warn "$fullmod is disabled; skipping\n";
+ next;
+ }
#my $full_condition_sql = $fullmod. '::condition_sql';
my $condition_sql_coderef = sub { $fullmod->condition_sql(@_) };
my $order_sql_coderef = $fullmod->can('order_sql')