service_default postage resets template postage to None

This commit is contained in:
Pea Tyczynska
2018-12-19 10:58:35 +00:00
parent 687e9e5866
commit 695f1150b5
2 changed files with 10 additions and 7 deletions

View File

@@ -581,11 +581,8 @@ def edit_service_template(service_id, template_id):
'process_type': form.process_type.data,
'reply_to_text': template['reply_to_text'],
}
if (
current_service.has_permission("choose_postage") and template["template_type"] == "letter"
) and form.postage.data in ["first", "second"]:
postage = {"postage": form.postage.data }
if current_service.has_permission("choose_postage") and template["template_type"] == "letter":
postage = {"postage": form.postage.data}
else:
postage = {}