Merge pull request #1336 from julceslauhub/master

Add some validations to avoid notices detected on server 11.130
This commit is contained in:
julceslauhub
2013-02-19 08:39:28 -08:00
3 changed files with 8 additions and 1 deletions

View File

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

View File

@@ -897,7 +897,7 @@ class Cases
}
}
} else {
$aReturn[$mKey] = $aArray2[$mKey];
$aReturn[$mKey] = isset($aArray2[$mKey]) ? $aArray2[$mKey] : null;
}
}
return $aReturn;

View File

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