diff --git a/src/app/resource/controllers/IndexingController.php b/src/app/resource/controllers/IndexingController.php index 99aba8d05aaf97ee5b2d568ea3d94b930ea83ebf..f2a9777d552ddf973556e41e21a87e6a58938ef2 100755 --- a/src/app/resource/controllers/IndexingController.php +++ b/src/app/resource/controllers/IndexingController.php @@ -123,7 +123,10 @@ class IndexingController $actions = []; foreach ($indexingParameters['indexingParameters']['actions'] as $value) { - $actions[] = ActionModel::getById(['id' => $value, 'select' => ['id', 'label_action', 'component']]); + $action = ActionModel::getById(['id' => $value, 'select' => ['id', 'label_action', 'component', 'id_status']]); + + $action['enabled'] = !empty($action['id_status']) && $action['id_status'] != '_NOSTATUS_'; + $actions[] = $action; } return $response->withJson(['actions' => $actions]);