From 7a8d05934ffc6400c57f8331f55e73f9ceed502c Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 6 May 2007 17:56:02 +0000 Subject: Fixing bug 1708011 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1131 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/OE.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'LedgerSMB/OE.pm') diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm index ab431769..b1256130 100644 --- a/LedgerSMB/OE.pm +++ b/LedgerSMB/OE.pm @@ -171,8 +171,9 @@ sub transactions { } if ( $form->{$ordnumber} ne "" ) { - $query .= " AND lower(?) LIKE ?"; - push @queryargs, $ordnumber, $number; + $ordnumber = ($ordnumber eq 'ordnumber') ? 'ordnumber' : 'quonumber'; + $query .= " AND lower($ordnumber) LIKE ?"; + push @queryargs, $number; $form->{open} = 1; $form->{closed} = 1; } -- cgit v1.2.3