From 771dcaacd8b31b3589b32d94f190d4d2bd7a81eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org> Date: Tue, 12 Nov 2019 11:21:18 +0100 Subject: [PATCH] :sparkles: feat(logging) Add back log of copy/paste actions issue #6046 --- include/class_CopyPasteHandler.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 40b074e68..5f9988b3f 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -151,6 +151,8 @@ class CopyPasteHandler $entry['object']->resetCopyInfos(); } + logging::log('copy', $entry['method'], $entry['dn'], [], ''); + $entry['object']->resetBase(); return $entry; @@ -209,6 +211,7 @@ class CopyPasteHandler foreach ($this->clean_objects as $key => $entry) { $this->current = $entry; $errors = $this->current['object']->save(); + logging::log('copy', 'paste', $this->current['object']->dn, [], reset($errors)); if (empty($errors)) { $this->current_saved(); @@ -228,6 +231,7 @@ class CopyPasteHandler /* Save current object if edition is finished */ if (isset($_POST['edit_finish'])) { $errors = $this->current['object']->save(); + logging::log('copy', 'paste', $this->current['object']->dn, [], reset($errors)); if (empty($errors)) { $this->current_saved(); -- GitLab