From 9d307b302767a12ac48beb72b0131bb3323e8b42 Mon Sep 17 00:00:00 2001 From: qronald Date: Fri, 20 Jan 2017 14:53:15 -0400 Subject: [PATCH] HOR-2309 --- workflow/engine/methods/cases/caseMessageHistory_Ajax.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php index 5a466f1e0..64a6adf92 100644 --- a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php @@ -93,6 +93,7 @@ if ($actionAjax == 'messageHistoryGridList_JXP') { } } + $totalCount = 0; foreach ($appMessageArray as $index => $value) { if (($appMessageArray[$index]['APP_MSG_SHOW_MESSAGE'] == 1 && $respMess != 'BLOCK' ) && ($appMessageArray[$index]['DEL_INDEX'] == 0 || in_array($appMessageArray[$index]['DEL_INDEX'], $delIndex ))) { @@ -104,12 +105,6 @@ if ($actionAjax == 'messageHistoryGridList_JXP') { $appMessageArray[$index]['APP_MSG_BODY'] = str_replace('\"','"',$appMessageArray[$index]['APP_MSG_BODY']); $appMessageArray[$index]['APP_MSG_BODY'] = str_replace('"','\"',$appMessageArray[$index]['APP_MSG_BODY']); $aProcesses[] = array_merge($appMessageArray[$index], array('MSGS_HISTORY' => $respMess)); - } - } - - $totalCount = 0; - foreach ($appMessageCountArray as $index => $value) { - if ($appMessageCountArray[$index]['APP_MSG_SHOW_MESSAGE'] == 1) { $totalCount ++; } }