From d757f06ff45c5ee2cf01594bde049cb846766b68 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Tue, 19 Sep 2023 00:01:07 +0300 Subject: [PATCH] ensure template account is set --- app/controllers/templates_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/templates_controller.rb b/app/controllers/templates_controller.rb index d9a9bfc8..5d9a7e27 100644 --- a/app/controllers/templates_controller.rb +++ b/app/controllers/templates_controller.rb @@ -29,6 +29,7 @@ class TemplatesController < ApplicationController end def create + @template.account = current_account @template.author = current_user @template.assign_attributes(@base_template.slice(:fields, :schema, :submitters)) if @base_template