BUG 12679 Error al crear template con nombre etiqueta SOLVED
Se agrego un filtro para crear con etiqueta existente
This commit is contained in:
@@ -4946,7 +4946,7 @@ class Cases
|
|||||||
G::verifyPath($pathEmail, true); //Create if it does not exist
|
G::verifyPath($pathEmail, true); //Create if it does not exist
|
||||||
$fileTemplate = $pathEmail . G::LoadTranslation('ID_UNASSIGNED_MESSAGE');
|
$fileTemplate = $pathEmail . G::LoadTranslation('ID_UNASSIGNED_MESSAGE');
|
||||||
|
|
||||||
if (!file_exists($fileTemplate)) {
|
if ((!file_exists($fileTemplate)) && file_exists($fileTemplate)) {
|
||||||
@copy(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'), $fileTemplate);
|
@copy(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'), $fileTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3865,7 +3865,7 @@ class Processes
|
|||||||
@copy( PATH_TPL . "mails" . PATH_SEP . "alert_message.html", $dir . "alert_message.html" );
|
@copy( PATH_TPL . "mails" . PATH_SEP . "alert_message.html", $dir . "alert_message.html" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! file_exists( $dir . "unassignedMessage.html" )) {
|
if ( (!file_exists( $dir . "unassignedMessage.html")) && file_exists($dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'))) {
|
||||||
if (defined('PARTNER_FLAG')) {
|
if (defined('PARTNER_FLAG')) {
|
||||||
@copy( PATH_TPL . "mails" . PATH_SEP . "unassignedMessagePartner.html", $dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'));
|
@copy( PATH_TPL . "mails" . PATH_SEP . "unassignedMessagePartner.html", $dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user