fix clone template folder

pull/349/head
Pete Matsyburka 1 year ago
parent d5bf54ee26
commit ff0d486831

@ -53,7 +53,7 @@ class TemplatesController < ApplicationController
if params[:account_id].present? && authorized_clone_account_id?(params[:account_id]) if params[:account_id].present? && authorized_clone_account_id?(params[:account_id])
@template.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 else
@template.account = current_account @template.account = current_account
end end

Loading…
Cancel
Save