FIX pb with sve_start_date

parent ec14714a
......@@ -60,7 +60,7 @@ class AcknowledgementReceiptModel
'select' => empty($aArgs['select']) ? ['*'] : $aArgs['select'],
'table' => ['acknowledgement_receipts'],
'where' => ['res_id in (?)'],
'data' => $aArgs['resIds'],
'data' => [$aArgs['resIds']],
'order_by' => empty($aArgs['orderBy']) ? [] : $aArgs['orderBy'],
'groupBy' => empty($aArgs['groupBy']) ? [] : $aArgs['groupBy']
]);
......
......@@ -765,7 +765,7 @@ class ResController
$select = explode(',', $data['select']);
$sve_start_date = false;
if ($keySve = array_search('sve_start_date', $select)) {
if ($keySve = array_search('sve_start_date', array_map('trim', $select))) {
unset($select[$keySve]);
$sve_start_date = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment