- 14 Nov 2019, 06:08
#4565
Varables don't appear to work in opencats/modules/candidates/CandidatesUI.php?
$stringsToFind = array(
'%CANDOWNER%',
'%CANDFIRSTNAME%',
'%CANDFULLNAME%'
);
$replacementStrings = array(
$candidateData['ownerFullName'],
$candidateData['firstName'],
$candidateData['firstName'] . ' ' . $candidateData['lastName'],
$candidateData['firstName'],
$candidateData['firstName']
);
$statusChangeTemplate = str_replace(
$stringsToFind,
$replacementStrings,
- Update: After looking at the code and trying the change ownership option in edit, I see that the variable replacement routine is applied to the change ownership template which is automatically emailed. I’ll try replicating the change variable section elsewhere in cantidatesui.php, unless there is already a suggested modification?
$stringsToFind = array(
'%CANDOWNER%',
'%CANDFIRSTNAME%',
'%CANDFULLNAME%'
);
$replacementStrings = array(
$candidateData['ownerFullName'],
$candidateData['firstName'],
$candidateData['firstName'] . ' ' . $candidateData['lastName'],
$candidateData['firstName'],
$candidateData['firstName']
);
$statusChangeTemplate = str_replace(
$stringsToFind,
$replacementStrings,
- Update: After looking at the code and trying the change ownership option in edit, I see that the variable replacement routine is applied to the change ownership template which is automatically emailed. I’ll try replicating the change variable section elsewhere in cantidatesui.php, unless there is already a suggested modification?