Only show relevant folders

A folder is relevant if it, or any of its descents contain a template of
the kind you’re looking for.

If you’re not filtering by template type then you should see all
folders.
This commit is contained in:
Chris Hill-Scott
2018-11-12 10:17:57 +00:00
parent 084c020d0c
commit 10fe78bb31
3 changed files with 23 additions and 8 deletions

View File

@@ -111,8 +111,6 @@ def test_post_add_template_folder_page(client_request, service_one, mocker, pare
{'template_type': 'sms'},
['All', 'Email', 'Letter'],
[
'folder_one Folder containing templates',
'folder_two Folder containing templates',
'sms_template_one Text message template',
'sms_template_two Text message template',
],
@@ -122,8 +120,6 @@ def test_post_add_template_folder_page(client_request, service_one, mocker, pare
{'template_type': 'sms', 'template_folder_id': PARENT_FOLDER_ID},
['All', 'Email', 'Letter'],
[
'folder_one_one Folder containing templates',
'folder_one_two Folder containing templates',
],
),
(