Add validation on file caseMessageHistory_Ajax.php to fix notice
This commit is contained in:
@@ -116,6 +116,10 @@ if ($actionAjax == 'messageHistoryGridList_JXP') {
|
|||||||
$r->data = $aProcesses;
|
$r->data = $aProcesses;
|
||||||
$r->totalCount = $totalCount;
|
$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"];
|
$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 );
|
echo G::json_encode( $r );
|
||||||
|
|||||||
Reference in New Issue
Block a user