The VOL_CTRL_PersonalSiteContactLookup Apex class queries for an Email Template using the Name field. If a customer renames the Email Template, it results in a "nullREQUIRED_FIELD_MISSING: Email body is required" error on the PersonalSiteContactLookup Visualforce page.
The VOL_CTRL_PersonalSiteContactLookup Apex class queries for an Email Template using the Name field. If a customer renames the Email Template, it results in a "nullREQUIRED_FIELD_MISSING: Email body is required" error on the PersonalSiteContactLookup Visualforce page.
Proposing we instead query on DeveloperName instead in case they rename. https://github.com/SalesforceFoundation/Volunteers-for-Salesforce/blob/master/src/classes/VOL_CTRL_PersonalSiteContactLookup.cls#L91
Current Query:
list<EmailTemplate> listT = [select Id from EmailTemplate where Name='Volunteers Personal Site Contact Lookup' limit 1];
Proposed Query:
list<EmailTemplate> listT = [select Id from EmailTemplate where DeveloperName='Volunteers_Personal_Site_Contact_Lookup' limit 1];
Other areas of the package are using the DeveloperName when querying against the EmailTemplate object.