From eff44733b24888988cc52d6ab23814d78f2db9ba Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Thu, 17 Apr 2014 09:51:25 -0400 Subject: [PATCH] Correccion en la edicion de ACTIVITY --- .../engine/src/ProcessMaker/BusinessModel/Task.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Task.php b/workflow/engine/src/ProcessMaker/BusinessModel/Task.php index 8734ce721..bab162bd8 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Task.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Task.php @@ -368,15 +368,14 @@ class Task $this->unsetVar($arrayProperty, "TAS_DEF_MESSAGE_TEMPLATE"); } //Additional configuration - if (isset($arrayProperty["TAS_DEF_MESSAGE_TYPE"]) && isset($arrayProperty["TAS_DEF_MESSAGE_TEMPLATE"])) { + if (isset($arrayProperty["TAS_DEF_MESSAGE_TYPE"])) { \G::LoadClass("configuration"); $oConf = new \Configurations(); + if (!isset($arrayProperty["TAS_DEF_MESSAGE_TEMPLATE"])) { + $arrayProperty["TAS_DEF_MESSAGE_TEMPLATE"] = "alert_message.html"; + } $oConf->aConfig = array("TAS_DEF_MESSAGE_TYPE" => $arrayProperty["TAS_DEF_MESSAGE_TYPE"], "TAS_DEF_MESSAGE_TEMPLATE" => $arrayProperty["TAS_DEF_MESSAGE_TEMPLATE"]); - $oConf->saveConfig("TAS_EXTRA_PROPERTIES", $arrayProperty["TAS_UID"], "", ""); - - unset($arrayProperty["TAS_DEF_MESSAGE_TYPE"]); - unset($arrayProperty["TAS_DEF_MESSAGE_TEMPLATE"]); } } else { $this->unsetVar($arrayProperty, "TAS_DEF_SUBJECT_MESSAGE"); @@ -386,7 +385,6 @@ class Task } $result = $task->update($arrayProperty); - $arrayResult["status"] = "OK"; if ($result == 3) {