mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
handle template archived
This commit is contained in:
1 parent
7784346a97
commit
28f47e1093
3 files changed
+12
No files matched your search
@@ -38,6 +38,8 @@ class SubmissionsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
return redirect_to template_path(@template), alert: I18n.t('template_has_been_archived') if @template.archived_at?
|
||||
|
||||
save_template_message(@template, params) if params[:save_message] == '1'
|
||||
|
||||
[params.delete(:subject), params.delete(:body)] if params[:is_custom_message] != '1'
|
||||
|
||||
Reference in new issue
Block a user