From ff0d486831c203dbc73d21663049d2f09b59611a Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 21 Jun 2024 14:10:27 +0300 Subject: [PATCH] fix clone template folder --- app/controllers/templates_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/templates_controller.rb b/app/controllers/templates_controller.rb index dfa801bf..2e055b95 100644 --- a/app/controllers/templates_controller.rb +++ b/app/controllers/templates_controller.rb @@ -53,7 +53,7 @@ class TemplatesController < ApplicationController if params[:account_id].present? && authorized_clone_account_id?(params[:account_id]) @template.account_id = params[:account_id] - @template.folder = @template.account.default_template_folder + @template.folder = @template.account.default_template_folder if @template.account_id != current_account.id else @template.account = current_account end