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