fix clone template folder

This commit is contained in:
Pete Matsyburka committed 2024-06-22 10:50:07 +03:00
1 parent d5bf54ee26
commit ff0d486831
1 file changed
+1 -1
+1 -1
View File
@@ -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