Merge pull request #448 from alphagov/fix_template_subject_update_bug

Fixed bug for subject not updating when changed on the edit template …
This commit is contained in:
NIcholas Staples
2016-04-14 14:14:47 +01:00
3 changed files with 50 additions and 6 deletions

View File

@@ -80,8 +80,12 @@ def edit_service_template(service_id, template_id):
if form.validate_on_submit():
service_api_client.update_service_template(
template_id, form.name.data, template['template_type'],
form.template_content.data, service_id
template_id,
form.name.data,
template['template_type'],
form.template_content.data,
service_id,
form.subject.data if getattr(form, 'subject', None) else None
)
return redirect(url_for(
'.choose_template',