Merge pull request #1336 from julceslauhub/master
Add some validations to avoid notices detected on server 11.130
This commit is contained in:
@@ -610,6 +610,9 @@ class Form extends XmlForm
|
||||
if (in_array( $dataFieldName, $grids )) {
|
||||
foreach ($dataField as $indexGrid => $dataGrid) {
|
||||
foreach ($dataGrid as $fieldGridName => $fieldGridValue) {
|
||||
if (!isset($requiredFieldsGrids[$dataFieldName])) {
|
||||
$requiredFieldsGrids[$dataFieldName] = array();
|
||||
}
|
||||
if (! is_array( $requiredFieldsGrids[$dataFieldName] )) {
|
||||
$requiredFieldsGrids[$dataFieldName] = array ();
|
||||
}
|
||||
|
||||
@@ -897,7 +897,7 @@ class Cases
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$aReturn[$mKey] = $aArray2[$mKey];
|
||||
$aReturn[$mKey] = isset($aArray2[$mKey]) ? $aArray2[$mKey] : null;
|
||||
}
|
||||
}
|
||||
return $aReturn;
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
/* Includes */
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
if (!is_array($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
//load the variables
|
||||
$oCase = new Cases();
|
||||
$oCase->thisIsTheCurrentUser( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], 'REDIRECT', 'casesListExtJs' );
|
||||
|
||||
Reference in New Issue
Block a user