Skip to content
Snippets Groups Projects
Verified Commit 136dd926 authored by Damien's avatar Damien
Browse files

FIX where clause for actions

parent f3c53447
No related branches found
No related tags found
No related merge requests found
......@@ -58,10 +58,10 @@ class VisaController
if ($rawAction['default_action_list'] == 'Y') {
$actions[] = ['value' => 'end_action', 'label' => $rawAction['label_action'] . ' ('. _BY_DEFAULT .')'];
} else {
if (empty($rawAction->where_clause)) {
if (empty($rawAction['where_clause'])) {
$actions[] = ['value' => $rawAction['id_action'], 'label' => $rawAction['label_action']];
} else {
$ressource = ResModel::get(['where' => ['res_id = ?', $rawAction->where_clause], 'data' => [$resId]]);
$ressource = ResModel::getOnView(['select' => [1], 'where' => ['res_id = ?', $rawAction['where_clause']], 'data' => [$aArgs['resId']]]);
if (!empty($ressource)) {
$actions[] = ['value' => $rawAction['id_action'], 'label' => $rawAction['label_action']];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment