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

Merge branch '6076-fatal-error-when-applying-template-with-no-asked-fields' into '1.4-dev'

Resolve "Fatal error when applying template with no asked fields"

See merge request fusiondirectory/fd!770
Showing with 4 additions and 1 deletion
+4 -1
......@@ -57,7 +57,7 @@ class templateDialog
if (($this->target === NULL) &&
is_object($this->template) &&
(isset($_POST[$this->post_finish]) || isset($_GET[$this->post_finish]) || empty($this->template->getNeeded()))
(isset($_POST[$this->post_finish]) || isset($_GET[$this->post_finish]))
) {
$this->template->save_object();
return $this->handle_finish();
......@@ -81,6 +81,9 @@ class templateDialog
return FALSE;
} else {
$this->template->save_object();
if (empty($this->template->getNeeded())) {
return $this->handle_finish();
}
}
}
......
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