Skip to content
Snippets Groups Projects
Commit a6f57ecb authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12981 TIME 0:05 fix empty parameters value in action

parent 5ed32178
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ class ActionController
'label_action' => $body['label_action'],
'action_page' => $body['action_page'],
'component' => $body['component'],
'parameters' => json_encode($parameters, true)
'parameters' => !empty($parameters) ? json_encode($parameters) : '{}'
]);
if (!empty($body['actionCategories'])) {
ActionModel::createCategories(['id' => $id, 'categories' => $body['actionCategories']]);
......@@ -221,7 +221,7 @@ class ActionController
'action_page' => $body['action_page'],
'component' => $body['component'],
'history' => $body['history'],
'parameters' => json_encode($parameters),
'parameters' => !empty($parameters) ? json_encode($parameters) : '{}'
],
'where' => ['id = ?'],
'data' => [$body['id']]
......
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