[freeside-commits] freeside/FS/FS svc_hardware.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Thu Apr 14 11:00:03 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14619
Modified Files:
svc_hardware.pm
Log Message:
fix service searching, RT#12477
Index: svc_hardware.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_hardware.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- svc_hardware.pm 1 Apr 2011 02:52:12 -0000 1.1
+++ svc_hardware.pm 14 Apr 2011 18:00:01 -0000 1.2
@@ -112,7 +112,12 @@
$hex =~ s/\W//g;
push @where, 'svc_hardware.hw_addr LIKE \'%'.$hex.'%\'';
}
+
+ if ( @where ) {
'(' . join(' OR ', @where) . ')';
+ } else {
+ '1 = 0'; #false
+ }
}
sub label {
More information about the freeside-commits
mailing list