mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Fix create SMS template
When creating an SMS template the form validation was looking for a subject. SMS messages don’t have a subject.
This commit is contained in:
@@ -31,7 +31,11 @@ def add_service_template(service_id, template_type):
|
||||
|
||||
if form.validate_on_submit():
|
||||
tdao.insert_service_template(
|
||||
form.name.data, template_type, form.template_content.data, service_id, form.subject.data or None
|
||||
form.name.data,
|
||||
template_type,
|
||||
form.template_content.data,
|
||||
service_id,
|
||||
form.subject.data if hasattr(form, 'subject') else None
|
||||
)
|
||||
return redirect(
|
||||
url_for('.choose_template', service_id=service_id, template_type=template_type)
|
||||
|
||||
Reference in New Issue
Block a user