diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-06 17:54:44 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-06 17:54:44 +0000 |
commit | 27877357b61bdc9f00da30a5136401654fa47467 (patch) | |
tree | 42936bec67525ee1d2d15bf4434cfb751509a4ce | |
parent | 330bd3f5550a2d88ffdbded3fb387eaf7310e4e3 (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-x | LedgerSMB/OE.pm | 5 |
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; } |