From b6f88bf6f07c04d46c67fdb67b4a9c30f3309806 Mon Sep 17 00:00:00 2001 From: Hamza HRAMCHI <hamza.hramchi@xelians.fr> Date: Mon, 20 Jun 2022 17:28:31 +0200 Subject: [PATCH] FIX #17671 TIME 0:10 add withDeleted parameter in History controller --- src/app/history/controllers/HistoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/history/controllers/HistoryController.php b/src/app/history/controllers/HistoryController.php index a7df7fa2e0..f5e5f2cfee 100644 --- a/src/app/history/controllers/HistoryController.php +++ b/src/app/history/controllers/HistoryController.php @@ -199,7 +199,7 @@ class HistoryController } elseif ($objectType == 'groups') { $objects = GroupModel::get(['select' => ['id', 'label as title'], 'where' => ['id in (?)'], 'data' => [$filteredHistoryIds]]); } elseif (in_array($objectType, ['main_documents', 'document'])) { - $objects = DocumentModel::get(['select' => ['id', 'title'], 'where' => ['id in (?)'], 'data' => [$filteredHistoryIds]]); + $objects = DocumentModel::get(['select' => ['id', 'title'], 'where' => ['id in (?)'], 'data' => [$filteredHistoryIds], 'withDeleted' => true]); } elseif ($objectType == 'password_rules') { $objects = PasswordModel::getRules(['select' => ['id', 'label as title'], 'where' => ['id in (?)'], 'data' => [$filteredHistoryIds]]); } elseif ($objectType == 'workflowTemplates') { -- GitLab