This commit is contained in:
Marco Antonio Nina Mena
2017-10-30 12:09:39 -04:00
parent 2845b37390
commit eb323992b4
2 changed files with 6 additions and 10 deletions

View File

@@ -112,6 +112,4 @@ switch ($actionAjax) {
echo G::json_encode($result); echo G::json_encode($result);
break; break;
default:
break;
} }

View File

@@ -34,7 +34,7 @@ switch ($actionAjax) {
$appMessageArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true, $_REQUEST['start'], $_REQUEST['limit']); $appMessageArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true, $_REQUEST['start'], $_REQUEST['limit']);
$appMessageCountArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true); $appMessageCountArray = $case->getHistoryMessagesTrackerExt($_SESSION['APPLICATION'], true);
$result = new stdClass(); $result = new stdClass();
$aProcesses = array(); $process = [];
$proUid = $_SESSION['PROCESS']; $proUid = $_SESSION['PROCESS'];
@@ -78,18 +78,18 @@ switch ($actionAjax) {
if ($respMess === 'BLOCK' || $respMess === '') { if ($respMess === 'BLOCK' || $respMess === '') {
$appMessageArray[$index]['APP_MSG_BODY'] = ''; $appMessageArray[$index]['APP_MSG_BODY'] = '';
} }
$aProcesses[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]); $process[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]);
$totalCount++; $totalCount++;
} }
} }
$aProcesses = array_splice($aProcesses, $_REQUEST['start'], $_REQUEST['limit']); $process = array_splice($process, $_REQUEST['start'], $_REQUEST['limit']);
$response = new stdclass(); $response = new stdclass();
$response->data = $aProcesses; $response->data = $process;
$response->totalCount = $totalCount; $response->totalCount = $totalCount;
if (!empty($aProcesses)) { if (!empty($process)) {
if (!isset($response->data[0])) { if (!isset($response->data[0])) {
$response->data[0] = array('APP_MSG_TYPE' => ''); $response->data[0] = array('APP_MSG_TYPE' => '');
} }
@@ -147,7 +147,7 @@ switch ($actionAjax) {
<script language="javascript"> <script language="javascript">
<?php <?php
global $G_FORM; ?> global $G_FORM; ?>
function loadForm_ <?php echo $G_FORM->id; ?>(parametro1) { function loadForm_ <?php echo $G_FORM->id; ?>(parameter) {
} }
</script> </script>
<?php <?php
@@ -190,6 +190,4 @@ switch ($actionAjax) {
echo $message; echo $message;
break; break;
default:
break;
} }