diff --git a/app/models/template.rb b/app/models/template.rb index cb0d7a05d..c023ae89a 100644 --- a/app/models/template.rb +++ b/app/models/template.rb @@ -81,7 +81,7 @@ class Template < ApplicationRecord scope :active, -> { where(archived_at: nil) } scope :archived, -> { where.not(archived_at: nil) } - scope :select_for_list, -> { select(:id, :name, :author_id, :account_id, :created_at, :archived_at, :folder_id, :submitters) } + scope :select_for_list, -> { select(:id, :name, :author_id, :account_id, :created_at, :archived_at, :folder_id) } def application_key external_id diff --git a/app/views/templates/_template.html.erb b/app/views/templates/_template.html.erb index 713cae13c..38c0367c2 100644 --- a/app/views/templates/_template.html.erb +++ b/app/views/templates/_template.html.erb @@ -71,13 +71,13 @@ <% if !template.archived_at? && (can?(:create, Submission) || can?(:update, template) || can?(:create, template) || can?(:destroy, template)) %>