BUG-12335 Currency field in Report table with grid not storing... SOLVED

- No existia una validacion para la parte de grillas solo forms.

- Se extendio la validacion para las grillas verificando todos los campos.
This commit is contained in:
Marco Antonio Nina
2013-07-12 16:03:50 -04:00
parent 45f0388fec
commit 635cf15dee

View File

@@ -810,16 +810,16 @@ class AdditionalTables extends BaseAdditionalTables
foreach ($gridData as $i => $gridRow) {
eval('$obj = new ' . $className . '();');
//Parsing values
foreach ($gridRow as $i => $v) {
foreach ($gridRow as $j => $v) {
foreach ($fieldTypes as $key => $fieldType) {
foreach ($fieldType as $name => $type) {
if ( strtoupper ( $i) == $name) {
if ( strtoupper ( $j) == $name) {
$v = validateType ($v, $type);
unset($name);
}
}
}
$gridRow[$i] = $v === '' ? null : $v;
$gridRow[$j] = $v === '' ? null : $v;
}
$obj->fromArray(array_change_key_case($gridRow, CASE_UPPER), BasePeer::TYPE_FIELDNAME);
$obj->setAppUid($appUid);