diff options
author | jayce <jayce> | 2007-09-26 19:24:40 +0000 |
---|---|---|
committer | jayce <jayce> | 2007-09-26 19:24:40 +0000 |
commit | 84fbfcfd5c664a6c05939b2c79997f16eded5efa (patch) | |
tree | 0696c95d3ccab42f712cb585625e70573f4cb3c2 /FS/FS/part_event/Condition/once.pm | |
parent | 20aa18258aaaa532eace2b3a87bd70f4c3709878 (diff) |
Event loop changes after initial creation caused this to never trigger, as the event loop creates a 'NEW' record, as a placeholder. We need to not die from that.
Diffstat (limited to 'FS/FS/part_event/Condition/once.pm')
-rw-r--r-- | FS/FS/part_event/Condition/once.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/part_event/Condition/once.pm b/FS/FS/part_event/Condition/once.pm index 8c24e83ff..ba3ccbb61 100644 --- a/FS/FS/part_event/Condition/once.pm +++ b/FS/FS/part_event/Condition/once.pm @@ -24,7 +24,7 @@ sub condition { my @existing = qsearch( 'cust_event', { 'eventpart' => $self->eventpart, 'tablenum' => $tablenum, - 'status' => { op=>'!=', value=>'failed' }, + 'status' => { op=>'NOT IN', value=>"('failed','new')" }, } ); ! scalar(@existing); |