From 9498759d11e4237bd03833b18fd7bbcda1868855 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Fri, 2 Oct 2020 14:54:47 +0200
Subject: [PATCH] FIX #14871 TIME 1 Improve action migration for 20.03

---
 migration/20.03/migrateIndexing.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/migration/20.03/migrateIndexing.php b/migration/20.03/migrateIndexing.php
index 70a7e69612a..f85b11609a3 100644
--- a/migration/20.03/migrateIndexing.php
+++ b/migration/20.03/migrateIndexing.php
@@ -66,15 +66,14 @@ foreach ($customs as $custom) {
 
                     $actions[] = (string)$id;
                 }
-
             }
 
             // ACTIONS WITH STATUS
             $actionsToMigrate = \SrcCore\models\DatabaseModel::select([
                 'select'    => ['id_action'],
                 'table'     => ['actions_groupbaskets, actions'],
-                'where'     => ['group_id = ?', 'basket_id = ?', 'id_action = id', '(action_page = ? OR component = ? OR action_page = ?)'],
-                'data'      => [$value['group_id'], 'IndexingBasket', 'confirm_status', 'confirmAction', "''"]
+                'where'     => ['group_id = ?', 'basket_id = ?', 'id_action = id', '(action_page = ? OR action_page = ? OR component = ? OR action_page = ?)'],
+                'data'      => [$value['group_id'], 'IndexingBasket', 'index_mlb', 'confirm_status', 'confirmAction', "''"]
             ]);
 
             foreach ($actionsToMigrate as $item) {
-- 
GitLab