From f27a3d23bd9570a7f0d885aca0f6c3095841567c Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Thu, 30 Oct 2014 12:05:06 -0400 Subject: [PATCH] Add validation on file caseMessageHistory_Ajax.php to fix notice --- workflow/engine/methods/cases/caseMessageHistory_Ajax.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php index c907db71f..d97c6c00e 100755 --- a/workflow/engine/methods/cases/caseMessageHistory_Ajax.php +++ b/workflow/engine/methods/cases/caseMessageHistory_Ajax.php @@ -116,6 +116,10 @@ if ($actionAjax == 'messageHistoryGridList_JXP') { $r->data = $aProcesses; $r->totalCount = $totalCount; + if (!isset($r->data[0])) { + $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"]; echo G::json_encode( $r );