Skip to content
Snippets Groups Projects
Commit 63d3359f authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12014 TIME 0:20 show folder label in history when sharing

parent df353868
No related branches found
No related tags found
No related merge requests found
...@@ -290,11 +290,13 @@ class FolderController ...@@ -290,11 +290,13 @@ class FolderController
} }
DatabaseModel::commitTransaction(); DatabaseModel::commitTransaction();
$folder = FolderModel::getById(['select' => ['label'], 'id' => $aArgs['id']]);
HistoryController::add([ HistoryController::add([
'tableName' => 'folders', 'tableName' => 'folders',
'recordId' => $aArgs['id'], 'recordId' => $aArgs['id'],
'eventType' => 'UP', 'eventType' => 'UP',
'info' => _FOLDER_SHARING_MODIFICATION . " : {$data['label']}", 'info' => _FOLDER_SHARING_MODIFICATION . " : {$folder['label']}",
'moduleId' => 'folder', 'moduleId' => 'folder',
'eventId' => 'folderModification', 'eventId' => 'folderModification',
]); ]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment