From: jayce Date: Wed, 26 Sep 2007 19:24:40 +0000 (+0000) Subject: Event loop changes after initial creation caused this to never trigger, as the event... X-Git-Tag: TRIXBOX_2_6~342 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=84fbfcfd5c664a6c05939b2c79997f16eded5efa;p=freeside.git 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. --- 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);