mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
fix being able to add template without selecting a radio button
This commit is contained in:
@@ -130,6 +130,9 @@ def choose_template(service_id, template_type='all', template_folder_id=None):
|
||||
except Exception as e:
|
||||
flash(e.message)
|
||||
|
||||
if 'templates_and_folders' in templates_and_folders_form.errors:
|
||||
flash('Select at least one template or folder')
|
||||
|
||||
return render_template(
|
||||
'views/templates/choose.html',
|
||||
current_template_folder_id=template_folder_id,
|
||||
|
||||
Reference in New Issue
Block a user