openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ae5c353feed782eeca7f4f23cb774d34c00238bf
parent c91de7d4046993bdae6b5767be985b4f629e28b7
Author: Jan Dankert <devnull@localhost>
Date:   Sun,  9 Dec 2018 23:34:19 +0100

Fix: Beim Hinzuf├╝gen von Templates muss auch die Projektid gesetzt sein.

Diffstat:
modules/cms-core/action/TemplatelistAction.class.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/cms-core/action/TemplatelistAction.class.php b/modules/cms-core/action/TemplatelistAction.class.php @@ -120,6 +120,7 @@ class TemplatelistAction extends Action // Neues Template anlegen. $template = new Template(); + $template->projectid = $this->project->projectid; $template->add( $this->getRequestVar('name') ); $this->addNotice('template',$template->name,'ADDED','ok'); break; @@ -136,6 +137,7 @@ class TemplatelistAction extends Action // Neues Template anlegen. $template = new Template(); + $template->projectid = $this->project->projectid; $template->add( $this->getRequestVar('name') ); $this->addNotice('template',$template->name,'ADDED','ok'); @@ -182,9 +184,8 @@ class TemplatelistAction extends Action // Neues Template anlegen. $template = new Template(); + $template->projectid = $this->project->projectid; - $template->modelid = $this->project->getDefaultModelId(); - $template->add( $this->getRequestVar('name') ); $example = parse_ini_file('examples/templates/'.$this->getRequestVar('example'),true);