[freeside-commits] freeside/FS/FS/part_event/Condition once.pm, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Thu Oct 4 16:40:54 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition
In directory wavetail:/tmp/cvs-serv24167
Modified Files:
once.pm
Log Message:
hopefully fix once.pm properly...
Index: once.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition/once.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- once.pm 2 Oct 2007 00:18:59 -0000 1.3
+++ once.pm 4 Oct 2007 23:40:51 -0000 1.4
@@ -21,15 +21,18 @@
my $obj_pkey = $object->primary_key;
my $tablenum = $object->$obj_pkey();
- my @existing = qsearch( 'cust_event', {
- 'eventpart' => $self->eventpart,
- 'tablenum' => $tablenum,
- #'status' => { op=>'NOT IN', value=>"('failed','new')" },
- 'status' => { op=>'!=', value=>'failed' },
- 'addl_sql' => ( $opt{'cust_event'}->eventnum =~ /^(\d+)$/
- ? " AND eventnum != $1 "
- : ''
- ),
+ my @existing = qsearch( {
+ 'table' => 'cust_event',
+ 'hashref' => {
+ 'eventpart' => $self->eventpart,
+ 'tablenum' => $tablenum,
+ #'status' => { op=>'NOT IN', value=>"('failed','new')" },
+ 'status' => { op=>'!=', value=>'failed' },
+ },
+ 'addl_sql' => ( $opt{'cust_event'}->eventnum =~ /^(\d+)$/
+ ? " AND eventnum != $1 "
+ : ''
+ ),
} );
! scalar(@existing);
More information about the freeside-commits
mailing list