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

FEAT #9105 Actions list order

parent 332a2be0
No related branches found
No related tags found
No related merge requests found
......@@ -545,7 +545,11 @@ class ResourceListController
$actions = [];
foreach ($rawActions as $rawAction) {
$actions[] = ActionModel::getById(['id' => $rawAction['id_action'], 'select' => ['label_action', 'component']]);
$actions[] = $rawAction['id_action'];
}
if (!empty($actions)) {
$actions = ActionModel::get(['select' => ['label_action', 'component'], 'where' => ['id in (?)'], 'data' => [$actions], 'orderBy' => ['label_action']]);
}
return $response->withJson(['actions' => $actions]);
......
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