diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 503242fe5fe89d5ed12622966614214e93afb776..7a4019955acc1aeddc52c0738ac17d023459e017 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -222,10 +222,11 @@ class CopyPasteHandler implements FusionDirectoryDialog /* Save edited entry and force loading new one */ if (isset($this->current['object'])) { + $dialogWasOpened = $this->current['object']->dialogOpened(); $this->current['object']->readPost(); $this->current['object']->update(); /* Save current object if edition is finished */ - if (!$this->current['object']->dialogOpened() && isset($_POST['edit_finish'])) { + if (!$dialogWasOpened && !$this->current['object']->dialogOpened() && isset($_POST['edit_finish'])) { $errors = $this->current['object']->save(); if (empty($errors)) {