From 206e5201b80ab2950a741fbb49eb60e1a70af80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Mon, 15 Aug 2016 22:24:23 +0200 Subject: [PATCH] FIX: reset namespace and module ID after each registered path --- app/Handlers/Registrators/TemplateRegistrator.php | 5 +++++ 1 file changed, 5 insertions(+) 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);