summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-06 17:54:44 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-05-06 17:54:44 +0000
commit27877357b61bdc9f00da30a5136401654fa47467 (patch)
tree42936bec67525ee1d2d15bf4434cfb751509a4ce
parent330bd3f5550a2d88ffdbded3fb387eaf7310e4e3 (diff)
Fixing bug 1708011
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1130 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/OE.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/LedgerSMB/OE.pm b/LedgerSMB/OE.pm
index 451cc4d8..5c253f50 100755
--- 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;
}