From 5b469bb6793705790d31eff1848fe57532533e6f Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 22 Oct 2019 11:31:16 +0200
Subject: [PATCH] FIX #12070 TIME 0:05 Fix action confirm

---
 src/app/resource/controllers/IndexingController.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app/resource/controllers/IndexingController.php b/src/app/resource/controllers/IndexingController.php
index 8a006a0d4a5..99aba8d05aa 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]);
-- 
GitLab