[freeside-commits] freeside/FS/FS Record.pm,1.226.2.11,1.226.2.12

Mark Wells mark at wavetail.420.am
Fri Dec 30 14:12:03 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14345/FS/FS

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	Record.pm 
Log Message:
improve behavior of != operator

Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.226.2.11
retrieving revision 1.226.2.12
diff -u -w -d -r1.226.2.11 -r1.226.2.12
--- Record.pm	13 Dec 2011 05:10:21 -0000	1.226.2.11
+++ Record.pm	30 Dec 2011 22:12:01 -0000	1.226.2.12
@@ -662,6 +662,8 @@
             qq-( $column $op "" )-;
           }
         }
+      } elsif ( $op eq '!=' ) {
+        qq-( $column IS NULL OR $column != ? )-;
       #if this needs to be re-enabled, it needs to use a custom op like
       #"APPROX=" or something (better name?, not '=', to avoid affecting other
       # searches



More information about the freeside-commits mailing list