diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 97c0387b829fa8274103c2a1ec189422f318e3e2..47c435c7524ecda374a7f00a2792d24f2b8153d1 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -290,8 +290,7 @@ class CopyPasteHandler } if ($this->current) { $display = $this->current['object']->execute(); - if (isset($this->current['object']->dialog) && - (is_object($this->current['object']->dialog) || $this->current['object']->dialog)) { + if ($this->current['object']->dialogOpened()) { return $display; } else { // Display ok, (apply) and cancel buttons