summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-06 16:22:54 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-06 16:22:54 +0000
commit11f0f1a20492221395d6b4dde29f5d0419cae1ad (patch)
tree90cf868dafd33cb1ed85acce1147b5a8e925869b
parentc6ce7d1082f8b37f209b27dfefa39148e256ef68 (diff)
Fix memo searches
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1521 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/GL.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/GL.pm b/LedgerSMB/GL.pm
index 0c747763..e069c930 100644
--- a/LedgerSMB/GL.pm
+++ b/LedgerSMB/GL.pm
@@ -257,7 +257,7 @@ sub all_transactions {
}
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";