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

:ambulance: feat(templates) Improve dialog support on non-simplePlugin tabs

issue #6106
Showing with 13 additions and 5 deletions
+13 -5
......@@ -263,12 +263,20 @@ class template
continue;
}
if ($plugin->is_modal_dialog()) {
$dialogResult = $plugin->dialog->execute();
if ($dialogResult === FALSE) {
$plugin->closeDialog();
if ($plugin instanceof simplePlugin) {
$dialogResult = $plugin->dialog->execute();
if ($dialogResult === FALSE) {
$plugin->closeDialog();
} else {
$this->tabObject->current = $class;
return $dialogResult;
}
} else {
$this->tabObject->current = $class;
return $dialogResult;
$dialogResult = $plugin->execute();
if ($plugin->is_modal_dialog()) {
$this->tabObject->current = $class;
return $dialogResult;
}
}
}
$attributesRendered = [];
......
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