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

Fixes copy/pasting objects with sub dialogs

parent 4634a56a
......@@ -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
......
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