A bug was reported on where editting a template with a breaking change.

The url was not being properly formed, missing the tempalte_id, meaning the back button on the page did not work.

This fixes that, includes a check of the url for the back button.
This commit is contained in:
Rebecca Law
2017-01-24 17:42:18 +00:00
parent 6817d84808
commit de94f369a7
3 changed files with 6 additions and 1 deletions

View File

@@ -218,6 +218,7 @@ def edit_service_template(service_id, template_id):
'name': form.name.data,
'subject': subject,
'content': form.template_content.data,
'id': new_template.id
},
column_headings=list(ascii_uppercase[:len(new_template.placeholders) + 1]),
example_rows=[