BUG 6544 "Can't send email notification to next assigned..." SOLVED

- When "Assignment rules" is set to "Self service", do not send
  notifications
- Problem solved, the settings made in "Notifications" on a task, is
  used to send notifications
* Available from version 2.0.44
This commit is contained in:
Victor Saisa Lopez
2012-09-10 16:04:31 -04:00
parent a4879331de
commit aba7c671e3
3 changed files with 198 additions and 71 deletions

View File

@@ -3468,45 +3468,49 @@ class Processes {
return $result;
}
function getProcessFiles($proUid, $type)
{
$filesList = array();
public function getProcessFiles($proUid, $type)
{
$filesList = array();
switch ($type) {
case 'mail': case 'email':
$basePath = PATH_DATA_MAILTEMPLATES;
break;
switch ($type) {
case "mail":
case "email":
$basePath = PATH_DATA_MAILTEMPLATES;
break;
case "public":
$basePath = PATH_DATA_PUBLIC;
break;
default:
throw new Exception("Unknow Process Files Type \"$type\".");
break;
}
case 'public':
$basePath = PATH_DATA_PUBLIC;
break;
$dir = $basePath . $proUid . PATH_SEP;
default:
throw new Exception("Unknow Process Files Type '$type'.");
G::verifyPath($dir, true); //Create if it does not exist
//Creating the default template (if not exists)
if (!file_exists($dir . "alert_message.html")) {
@copy(PATH_TPL . "mails" . PATH_SEP . "alert_message.html", $dir . "alert_message.html");
}
if (!file_exists($dir . "unassignedMessage.html")) {
@copy(PATH_TPL . "mails" . PATH_SEP . "unassignedMessage.html", $dir . "unassignedMessage.html");
}
$files = glob($dir . "*.*");
foreach ($files as $file) {
$fileName = basename($file);
if ($fileName != "alert_message.html" && $fileName != "unassignedMessage.html") {
$filesList[] = array("filepath" => $file, "filename" => $fileName);
}
}
return $filesList;
}
$dir = $basePath . $proUid . PATH_SEP;
G::verifyPath($dir, true); // create if it does not exist.
// creating the default template (if not exists)
if (!file_exists($dir . 'alert_message.html')) {
@copy(PATH_TPL . 'mails' . PATH_SEP . 'alert_message.html', $dir . 'alert_message.html');
}
$files = glob($dir . '*.*');
foreach ($files as $file) {
$fileName = basename($file);
if ($fileName !== 'alert_message.html') {
$filesList[] = array('filepath' => $file, 'filename' => $fileName);
}
}
return $filesList;
}
}//end class processes
/**