Unverified Commit c3336e9b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(copypaste) Ignore edit_finish if a dialog is opened

issue #6104
Showing with 1 addition and 1 deletion
+1 -1
...@@ -228,7 +228,7 @@ class CopyPasteHandler ...@@ -228,7 +228,7 @@ class CopyPasteHandler
if (isset($this->current['object'])) { if (isset($this->current['object'])) {
$this->current['object']->save_object(); $this->current['object']->save_object();
/* Save current object if edition is finished */ /* 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(); $errors = $this->current['object']->save();
if (empty($errors)) { if (empty($errors)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment