Added a boolean column to templates called is_letter_contact_blank.

If is_letter_contact_blank then the user has set the letter contact block to be blank on purpose
ELSE IF is_letter_contact_blank is false THEN use the template default
IF template default is blank THEN the service_letter_contact is blank use the service default
This commit is contained in:
Rebecca Law
2018-01-04 11:33:10 +00:00
parent 33e8e55dc6
commit 6a3831eace
4 changed files with 43 additions and 1 deletions

View File

@@ -623,6 +623,7 @@ def test_get_template_reply_to(client, sample_letter_template):
assert 'service_letter_contact_id' not in json_resp['data']
assert json_resp['data']['reply_to'] == letter_contact.contact_block
assert not json_resp['data']['is_letter_contact_blank']
def test_update_template_reply_to(client, sample_letter_template):