diff --git a/app/Handlers/Registrators/TemplateRegistrator.php b/app/Handlers/Registrators/TemplateRegistrator.php index 0a7f5480..6788df67 100644 --- a/app/Handlers/Registrators/TemplateRegistrator.php +++ b/app/Handlers/Registrators/TemplateRegistrator.php @@ -73,6 +73,7 @@ class TemplateRegistrator public function unsetNamespace() { $this->namespace = null; + $this->setModuleId(null); } /** @@ -95,6 +96,8 @@ class TemplateRegistrator // register path $this->registerPath($this->registeredPath, $name); + + $this->unsetNamespace(); } /** @@ -194,6 +197,8 @@ class TemplateRegistrator 'editable' => 1 ]; + echo 'ukladam do db '.$templateName."\n"; + // save template into database $newTemplate = Template::create($params);