BUG 12389 fechas en grids v.2.5.0.1 SOLVED

- Las fechas en grids cuando estan delante de un dropdown, text, link cambiaban su mascara de yyyy-mm-dd a dd-mm-yyyy.
- Se realizaron ajustes en los arrays que realizaban el filtrado de los items de un grid al momento de asignarle un label y un formato.
This commit is contained in:
Hector Cortez
2013-07-30 15:56:44 -04:00
parent c20ff93156
commit 33970cd4f3

View File

@@ -469,7 +469,7 @@ class Form extends XmlForm
switch ($this->fields[$k]->fields[$kk]->type) {
case "dropdown":
//We need to know which fields are dropdowns
$values[$k][$j] = $newValues[$k][$j];
$values[$k][$j][$kk] = $newValues[$k][$j][$kk];
if ($this->fields[$k]->validateValue( $newValues[$k][$j], $this )) {
//If the dropdown has otions
@@ -504,7 +504,7 @@ class Form extends XmlForm
}
break;
case "link":
$values[$k][$j] = $newValues[$k][$j];
$values[$k][$j][$kk] = $newValues[$k][$j][$kk];
$values[$k][$j][$kk . "_label"] = $newValues[$k][$j][$kk . "_label"];
break;
case 'date':
@@ -513,7 +513,7 @@ class Form extends XmlForm
default:
//If there are no dropdowns previously setted and the evaluated field is not a dropdown
//only then rewritte the $values
$values[$k][$j] = $this->fields[$k]->maskValue( $newValues[$k][$j], $this );
$values[$k][$j][$kk] = $this->fields[$k]->fields[$kk]->maskValue( $newValues[$k][$j][$kk], $this->fields[$k]->fields[$kk] );
break;
}
} else {