Event loop changes after initial creation caused this to never trigger, as the event...
authorjayce <jayce>
Wed, 26 Sep 2007 19:24:40 +0000 (19:24 +0000)
committerjayce <jayce>
Wed, 26 Sep 2007 19:24:40 +0000 (19:24 +0000)
FS/FS/part_event/Condition/once.pm

index 8c24e83..ba3ccbb 100644 (file)
@@ -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);