Edit or updating the HR Email content errors dot-walked reference fields automatically with DescriptionSaving HR Email Content (table: sn_hr_core_email_content) causes dot‑walked fields to automatically wrap inside <span class="errored-field" style="color:#ff0000;">…</span> whenever the record is saved, turning the referenced field values red after saving.Steps to Reproduce This can occur in any Australia or previous release with Human Resources: Core (sn_hr_core) installed. The issue appears when you have set up ACLs on your instance that block a reference field (for example sn_hr_le_case.subject_person) and attempt to use these references and their dot-walked fields in the email content HTML. You can test by adding the dot walked field to the HTML and saving the record: ${subject_person.manager.email} Once you save the record, the reference will turn red, because it has the <span> containing red styling. The script include which checks the HTML content for references determines that they valid, but the user cannot read it, so it turns it red.Instead, we want to not add the <span> at all, even though the current user cannot read that reference field and dot-walked values.WorkaroundWe need to update the script include GeneralHRForm. Navigate to All > System definition > Script Includes and find the script include by name. Update the existing method in the class, which should be on line 595: validateTemplate: function(parsedBody, tableName, isEmailTemplate){ Find the 'else' block on line 640: else { parsedBody = parsedBody.replace(matched[i], '<span class="errored-field" style="color:#ff0000;">'+matched[i]+'</span>'); this.inaccessibleVariable.push(matched[i]); break; } and replace it with the following: else { if(!isEmailTemplate) parsedBody = parsedBody.replace(matched[i], '<span class="errored-field" style="color:#ff0000;">'+matched[i]+'</span>'); this.inaccessibleVariable.push(matched[i]); break; } This prevents the update to turn the inaccessible reference fields red when saving the Email Content record, fixing the defect. Related Problem: PRB1990683