diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 12c60ff37d77e9557cf3c29350de1186070cca3e..f04d4f0836f6ca155dfe0b6c695d5e9f6b350664 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -261,8 +261,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