Email center - Custom Templates settings - all toggles can not be turned off

Description

Email center - Custom Templates settings - all toggles can not be turned off can not be turned off:

E.g:
Once you have selected Ignore contact preferences on an email and saved it, you can not uncheck it again. You can uncheck the box, but when you save it comes back as checked again.

 

I checked it out and think the issue because this

https://github.com/pixl8/Preside-CMS/blob/5ef9843899ea3650132361e0b170e5ee57850225/system/handlers/admin/emailCenter/CustomTemplates.cfc#L446

 

this function getCollectionWithoutSystemVars(); cant get data for unchecked checkboxes

i think we should use this function instead

getCollectionForForm( formName=rc.$presideform ?: "" )

 

See my example below:

First struct is getCollectionWithoutSystemVars();

Second struct is getCollectionForForm( formName=rc.$presideform ?: "" );

Environment

None
Fixed

Assignee

Seb Duggan

Reporter

Khánh Nguyễn

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Medium