Skip to content
Snippets Groups Projects
Commit b6f88bf6 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17671 TIME 0:10 add withDeleted parameter in History controller

parent 31570957
No related branches found
No related tags found
No related merge requests found
......@@ -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') {
......
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