From c3336e9beb099454803f698af61315cb8010811f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org> Date: Wed, 8 Jul 2020 16:52:58 +0200 Subject: [PATCH] :ambulance: fix(copypaste) Ignore edit_finish if a dialog is opened issue #6104 --- include/class_CopyPasteHandler.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 8667de4a4..5669321f3 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -228,7 +228,7 @@ class CopyPasteHandler if (isset($this->current['object'])) { $this->current['object']->save_object(); /* Save current object if edition is finished */ - if (isset($_POST['edit_finish'])) { + if (!$this->current['object']->dialogOpened() && isset($_POST['edit_finish'])) { $errors = $this->current['object']->save(); if (empty($errors)) { -- GitLab