BUG 12981 When using the plugin ActionByEmail. The email received is not very user freindly IMPROVEMENT
This commit is contained in:
@@ -4932,9 +4932,9 @@ class Cases
|
|||||||
throw (new Exception("Template file \"$fileTemplate\" does not exist."));
|
throw (new Exception("Template file \"$fileTemplate\" does not exist."));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sBody = G::replaceDataGridField(file_get_contents($fileTemplate), $aFields);
|
$sBody = G::replaceDataGridField(file_get_contents($fileTemplate), $aFields, false);
|
||||||
} else {
|
} else {
|
||||||
$sBody = nl2br(G::replaceDataGridField($aTaskInfo["TAS_DEF_MESSAGE"], $aFields));
|
$sBody = nl2br(G::replaceDataGridField($aTaskInfo["TAS_DEF_MESSAGE"], $aFields, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
G::LoadClass("tasks");
|
G::LoadClass("tasks");
|
||||||
|
|||||||
@@ -970,7 +970,7 @@ class wsBase
|
|||||||
$Fields = array_merge( $oldFields['APP_DATA'], $appFields );
|
$Fields = array_merge( $oldFields['APP_DATA'], $appFields );
|
||||||
}
|
}
|
||||||
|
|
||||||
$sBody = G::replaceDataGridField(file_get_contents($fileTemplate), $Fields);
|
$sBody = G::replaceDataGridField(file_get_contents($fileTemplate), $Fields, false);
|
||||||
$hasEmailFrom = preg_match( '/(.+)@(.+)\.(.+)/', $sFrom, $match );
|
$hasEmailFrom = preg_match( '/(.+)@(.+)\.(.+)/', $sFrom, $match );
|
||||||
|
|
||||||
if (!$hasEmailFrom || strpos($sFrom, $aSetup["MESS_ACCOUNT"]) === false) {
|
if (!$hasEmailFrom || strpos($sFrom, $aSetup["MESS_ACCOUNT"]) === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user