summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}