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

:ambulance: fix(simpleplugin) Make sure dialog readPost gets called

issue #6072
Showing with 5 additions and 3 deletions
+5 -3
......@@ -40,8 +40,11 @@ abstract class GenericDialog implements FusionDirectoryDialog
{
if (isset($_POST[$this->post_cancel])) {
$this->handleCancel();
} elseif (isset($_POST[$this->post_finish]) || isset($_GET[$this->post_finish])) {
$this->handleFinish();
} else {
$this->dialog->readPost();
if (isset($_POST[$this->post_finish]) || isset($_GET[$this->post_finish])) {
$this->handleFinish();
}
}
}
......
......@@ -61,7 +61,6 @@ class GenericSimplePluginDialog extends GenericDialog
protected function handleFinish ()
{
$this->dialog->readPost();
$this->dialog->update();
$msgs = $this->dialog->check();
if (count($msgs)) {
......
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