From 60c5116af25a4feac56795d2f22594e480577383 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Mon, 9 Jan 2017 16:15:47 -0400 Subject: [PATCH] HOR-921 --- workflow/engine/methods/cases/caseMessageHistory_Ajax.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php index 5a466f1e0..37f7776a6 100644 --- a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php @@ -127,9 +127,11 @@ if ($actionAjax == 'messageHistoryGridList_JXP') { $r->data[0] = array('APP_MSG_TYPE' => ''); } - $r->data[0]["APP_MSG_TYPE"] = (array_key_exists($r->data[0]["APP_MSG_TYPE"], $arrayToTranslation)) ? - $arrayToTranslation[$r->data[0]["APP_MSG_TYPE"]] : - $r->data[0]["APP_MSG_TYPE"]; + foreach ($r->data as $key => $value) { + $r->data[$key]["APP_MSG_TYPE"] = array_key_exists($r->data[$key]["APP_MSG_TYPE"], $arrayToTranslation) ? + $arrayToTranslation[$r->data[$key]["APP_MSG_TYPE"]] : + $r->data[$key]["APP_MSG_TYPE"]; + } } echo G::json_encode( $r );