[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1521] trunk/LedgerSMB/GL.pm



Revision: 1521
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1521&view=rev
Author:   tetragon
Date:     2007-09-06 09:22:54 -0700 (Thu, 06 Sep 2007)

Log Message:
-----------
Fix memo searches

Modified Paths:
--------------
    trunk/LedgerSMB/GL.pm

Modified: trunk/LedgerSMB/GL.pm
===================================================================
--- trunk/LedgerSMB/GL.pm	2007-09-06 16:22:13 UTC (rev 1520)
+++ trunk/LedgerSMB/GL.pm	2007-09-06 16:22:54 UTC (rev 1521)
@@ -257,7 +257,7 @@
     }
 
     if ( $form->{memo} ne "" ) {
-        $var = $form->like( lc $form->{memo} );
+        $var = $dbh->quote( $form->like( lc $form->{memo} ) );
         $glwhere .= " AND lower(ac.memo) LIKE $var";
         $arwhere .= " AND lower(ac.memo) LIKE $var";
         $apwhere .= " AND lower(ac.memo) LIKE $var";


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.