Merge remote-tracking branch 'origin/bugfix/HOR-3670' into bugfix/HOR-3670-HQ
This commit is contained in:
@@ -7,7 +7,7 @@ use CasesPeer;
|
||||
use AppDelegation;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use Exception;
|
||||
use wsBase;
|
||||
use WsBase;
|
||||
use RBAC;
|
||||
use Applications;
|
||||
|
||||
@@ -463,7 +463,7 @@ class Cases
|
||||
if (!isset($row)) {
|
||||
continue;
|
||||
}
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->getCaseInfo($applicationUid, $row["DEL_INDEX"]);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if ($array ["status_code"] != 0) {
|
||||
@@ -530,7 +530,7 @@ class Cases
|
||||
throw (new Exception($arrayData));
|
||||
}
|
||||
} else {
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->getCaseInfo($applicationUid, 0);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
|
||||
@@ -676,7 +676,7 @@ class Cases
|
||||
{
|
||||
try {
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
if ($variables) {
|
||||
$variables = array_shift($variables);
|
||||
}
|
||||
@@ -720,7 +720,7 @@ class Cases
|
||||
{
|
||||
try {
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
if ($variables) {
|
||||
$variables = array_shift($variables);
|
||||
} elseif ($variables == null) {
|
||||
@@ -775,7 +775,7 @@ class Cases
|
||||
$delIndex = AppDelegation::getCurrentIndex($applicationUid);
|
||||
}
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidSource, $userUidTarget);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if (array_key_exists("status_code", $array)) {
|
||||
@@ -1006,7 +1006,7 @@ class Cases
|
||||
$RBAC->sSystem = 'PROCESSMAKER';
|
||||
}
|
||||
|
||||
$case = new wsBase();
|
||||
$case = new WsBase();
|
||||
$result = $case->executeTrigger($userUid, $appUid, $triUid, $delIndex);
|
||||
|
||||
if ($result->status_code != 0) {
|
||||
@@ -1073,7 +1073,7 @@ class Cases
|
||||
}
|
||||
}
|
||||
|
||||
$ws = new wsBase();
|
||||
$ws = new WsBase();
|
||||
$fields = $ws->derivateCase($userUid, $applicationUid, $delIndex, $bExecuteTriggersBeforeAssignment = false);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
if ($array ["status_code"] != 0) {
|
||||
|
||||
@@ -701,7 +701,7 @@ class InputDocument
|
||||
throw new \Exception(\G::LoadTranslation("ID_CASES_INPUT_DOES_NOT_EXIST", array($inputDocumentUid)));
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$ws->removeDocument($inputDocumentUid);
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
|
||||
@@ -69,7 +69,7 @@ class Consolidated
|
||||
*/
|
||||
public function postDerivate($app_uid, $app_number, $del_index, $usr_uid, $fieldName = '', $fieldValue = '')
|
||||
{
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$oCase = new \Cases();
|
||||
|
||||
if (!isset($Fields["DEL_INIT_DATE"])) {
|
||||
|
||||
@@ -524,7 +524,7 @@ class Light
|
||||
$delIndex = \AppDelegation::getCurrentIndex($applicationUid);
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$fields = $ws->derivateCase($userUid, $applicationUid, $delIndex, $bExecuteTriggersBeforeAssignment = false, $tasks);
|
||||
$array = json_decode(json_encode($fields), true);
|
||||
$array['message'] = trim(strip_tags($array['message']));
|
||||
|
||||
@@ -368,7 +368,7 @@ class MessageApplication
|
||||
try {
|
||||
|
||||
//Set variables
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$case = new \Cases();
|
||||
$common = new \ProcessMaker\Util\Common();
|
||||
$sysSys = (defined("SYS_SYS"))? SYS_SYS : "Undefined";
|
||||
|
||||
@@ -357,7 +357,7 @@ class Pmgmail {
|
||||
return false;
|
||||
}
|
||||
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$resultMail = $ws->sendMessage(
|
||||
$application['APP_UID'],
|
||||
$defaultEmail, //From,
|
||||
|
||||
@@ -1211,7 +1211,7 @@ class TimerEvent
|
||||
try {
|
||||
|
||||
//Set variables
|
||||
$ws = new \wsBase();
|
||||
$ws = new \WsBase();
|
||||
$case = new \Cases();
|
||||
$common = new \ProcessMaker\Util\Common();
|
||||
$sysSys = (defined("SYS_SYS"))? SYS_SYS : "Undefined";
|
||||
|
||||
Reference in New Issue
Block a user