Skip to content

Commit

Permalink
Validate the input of sort by since its a statement instead of string.
Browse files Browse the repository at this point in the history
  • Loading branch information
ExsonQu2018 committed Jul 29, 2018
1 parent c09fe69 commit 593252c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SalesInquiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ function submit($PartNumber,$PartNumberOp,$DebtorNo,$DebtorNoOp,$DebtorName,$Deb
return;
}
if (!in_array($_POST['SortBy'],array('salesorderdetails.orderno',
'salesorderdetails.stkcode',
'debtorsmaster.debtorno,salesorderdetails.orderno',
'debtorsmaster.name,debtorsmaster.debtorno,salesorderdetails.orderno',
'tempstockmoves.transno,salesorderdetails.stkcode',
'salesorderdetails.itemdue,salesorderdetails.orderno'))) {
'salesorderdetails.stkcode',
'debtorsmaster.debtorno,salesorderdetails.orderno',
'debtorsmaster.name,debtorsmaster.debtorno,salesorderdetails.orderno',
'tempstockmoves.transno,salesorderdetails.stkcode',
'salesorderdetails.itemdue,salesorderdetails.orderno'))) {
$InputError = 1;
prnMsg(_('The sorting order is not defined'),'error');
return;
Expand Down

0 comments on commit 593252c

Please sign in to comment.