mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Merge pull request #1278 from alphagov/removing-placeholders-non-breaking
Make removing placeholders a non-breaking change
This commit is contained in:
@@ -259,7 +259,7 @@ def edit_service_template(service_id, template_id):
|
||||
'process_type': form.process_type.data
|
||||
}, current_service)
|
||||
template_change = get_template(template, current_service).compare_to(new_template)
|
||||
if template_change.has_different_placeholders and not request.form.get('confirm'):
|
||||
if template_change.placeholders_added and not request.form.get('confirm'):
|
||||
example_column_headings = (
|
||||
first_column_headings[new_template.template_type] +
|
||||
list(new_template.placeholders)
|
||||
|
||||
Reference in New Issue
Block a user