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

FIX #12070 TIME 0:05 Fix action confirm

parent 3a8f8e3e
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,9 @@ class IndexingController
$body['note'] = empty($body['note']) ? null : $body['note'];
$method = ActionMethodController::COMPONENTS_ACTIONS[$action['component']];
$methodResponse = ActionMethodController::$method(['resId' => $body['resource'], 'data' => $body['data'], 'note' => $body['note']]);
if (!empty($method)) {
$methodResponse = ActionMethodController::$method(['resId' => $body['resource'], 'data' => $body['data'], 'note' => $body['note']]);
}
$historic = empty($methodResponse['history']) ? '' : $methodResponse['history'];
ActionMethodController::terminateAction(['id' => $args['actionId'], 'resources' => [$body['resource']], 'basketName' => 'Indexing', 'note' => $body['note'], 'history' => $historic]);
......
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