FIX: fix saving template created as copy

Copied templates are automatically stored *only* into custom directory. They cannot be under control of VCS (while they would need to be commited after creating) and therefore are stored only localy. Previous version contained bug, that "previous" template was taken from "original" destination.
This commit is contained in:
Michal Kváček
2016-03-07 16:34:56 +01:00
parent 6e6be7f790
commit 6723381384
+1 -1
View File
@@ -73,7 +73,7 @@ class EditTemplate extends Controller
private function saveContent(Template $template, EditTemplateRequest $request)
{
// get templates with paths
$originalTemplate = $template->getPathToTemplate(Template::ORIGINAL_DIRECTORY);
$originalTemplate = $template->getPathToTemplate();
$customTemplate = $template->getPathToTemplate(Template::CUSTOM_EDIT_DIRECTORY);
// get paths