From eb323992b4f86dfcd788da70be3d0ceca8990714 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Mena Date: Mon, 30 Oct 2017 12:09:39 -0400 Subject: [PATCH] fix CR --- workflow/engine/methods/cases/caseHistory_Ajax.php | 2 -- .../methods/cases/caseMessageHistory_Ajax.php | 14 ++++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/workflow/engine/methods/cases/caseHistory_Ajax.php b/workflow/engine/methods/cases/caseHistory_Ajax.php index 00e5a5771..e3fc9d007 100644 --- a/workflow/engine/methods/cases/caseHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseHistory_Ajax.php @@ -112,6 +112,4 @@ switch ($actionAjax) { echo G::json_encode($result); break; - default: - break; } diff --git a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php index 3efccecb4..cd7059952 100644 --- a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php @@ -34,7 +34,7 @@ switch ($actionAjax) { $appMessageArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true, $_REQUEST['start'], $_REQUEST['limit']); $appMessageCountArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true); $result = new stdClass(); - $aProcesses = array(); + $process = []; $proUid = $_SESSION['PROCESS']; @@ -78,18 +78,18 @@ switch ($actionAjax) { if ($respMess === 'BLOCK' || $respMess === '') { $appMessageArray[$index]['APP_MSG_BODY'] = ''; } - $aProcesses[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]); + $process[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]); $totalCount++; } } - $aProcesses = array_splice($aProcesses, $_REQUEST['start'], $_REQUEST['limit']); + $process = array_splice($process, $_REQUEST['start'], $_REQUEST['limit']); $response = new stdclass(); - $response->data = $aProcesses; + $response->data = $process; $response->totalCount = $totalCount; - if (!empty($aProcesses)) { + if (!empty($process)) { if (!isset($response->data[0])) { $response->data[0] = array('APP_MSG_TYPE' => ''); } @@ -147,7 +147,7 @@ switch ($actionAjax) {