diff --git a/src/app/resource/controllers/IndexingController.php b/src/app/resource/controllers/IndexingController.php index 8a006a0d4a55fb955f67c074a50b83a488945bbe..99aba8d05aaf97ee5b2d568ea3d94b930ea83ebf 100755 --- a/src/app/resource/controllers/IndexingController.php +++ b/src/app/resource/controllers/IndexingController.php @@ -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]);