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

SF.net SVN: ledger-smb: [1520] branches/1.2/LedgerSMB/GL.pm



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

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

Modified Paths:
--------------
    branches/1.2/LedgerSMB/GL.pm

Modified: branches/1.2/LedgerSMB/GL.pm
===================================================================
--- branches/1.2/LedgerSMB/GL.pm	2007-09-06 06:10:06 UTC (rev 1519)
+++ branches/1.2/LedgerSMB/GL.pm	2007-09-06 16:22:13 UTC (rev 1520)
@@ -241,7 +241,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.