BUG 12679 Error al crear template con nombre etiqueta SOLVED

Se agrego un filtro para crear con etiqueta existente
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-08-20 09:35:16 -04:00
parent 327d40e655
commit 1bff15da35
2 changed files with 2 additions and 2 deletions

View File

@@ -4946,7 +4946,7 @@ class Cases
G::verifyPath($pathEmail, true); //Create if it does not exist
$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);
}

View File

@@ -3865,7 +3865,7 @@ class Processes
@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')) {
@copy( PATH_TPL . "mails" . PATH_SEP . "unassignedMessagePartner.html", $dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'));
} else {