Closed crarugal closed 2 years ago
Apologies, this isn't a bug; the template is not automatically associated with the user's organisation. It has to be chosen, as the default is the BL template.
Tested on a BL-created target, with an NLS template; the request email is sent with the correct template as expected:
Also tested on an NLS-created target with an NLS template; email is sent and correct template as expected:
https://github.com/ukwa/w3act/tree/master/conf/templates
I set up a test NLS account https://www.webarchive.org.uk/act/curators/2245![image](https://user-images.githubusercontent.com/18530934/168597256-05596e4c-43c6-4d01-8d9c-d8df646baf92.png)
Hoping to test if targets created by an NLS user and released by and NLS archivist would send out an NLS template, it seems that the BL template is being sent out instead:
https://www.webarchive.org.uk/act/targets/160705![image](https://user-images.githubusercontent.com/18530934/168597501-f1d5d9ef-8577-43da-9a2a-b9c0aff2d63a.png)
I did the same for an NLW test user: https://www.webarchive.org.uk/act/curators/2246![image](https://user-images.githubusercontent.com/18530934/168598607-7a0618cf-1cdf-4be5-9b9c-ae676512a3e3.png)
https://www.webarchive.org.uk/act/targets/act/act-5756987456093732003![image](https://user-images.githubusercontent.com/18530934/168598655-c05f9a12-4428-4ff1-8981-3bd661ac7f98.png)
The contact template is again the BL template:![image](https://user-images.githubusercontent.com/18530934/168598736-3e2a9b5d-d512-4f30-80eb-1da40574e3c8.png)