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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user