Merged in julceslau/processmaker (pull request #1107)

Add validation on file caseMessageHistory_Ajax.php to fix notice
This commit is contained in:
Julio Cesar Laura Avendaño
2014-10-30 12:07:59 -04:00

View File

@@ -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 );