BUG 9191 Cuando se importa procesos antiguos con mascara currency ... SOLVED
- En la version de PM 2.0.41 testing 3 Cuando se importa procesos antiguos con mascara currency a la nueva version muestra en sus campos ;$, como se adjunta en la imagen correspondiente. - Adjustment in the validate the simbols _ ; in the Currency fields.
This commit is contained in:
@@ -1613,7 +1613,7 @@ class XmlForm_Field_Currency extends XmlForm_Field_SimpleText {
|
|||||||
$onkeypress = G::replaceDataField ( $this->onkeypress, $owner->values );
|
$onkeypress = G::replaceDataField ( $this->onkeypress, $owner->values );
|
||||||
|
|
||||||
$html = '';
|
$html = '';
|
||||||
$currency = preg_replace( '/([#,.])/', '',$this->mask);
|
$currency = preg_replace( '/([_;#,.])/', '',$this->mask);
|
||||||
if (! $value) $value= $currency;
|
if (! $value) $value= $currency;
|
||||||
|
|
||||||
if ($this->renderMode == 'edit'){ //EDIT MODE
|
if ($this->renderMode == 'edit'){ //EDIT MODE
|
||||||
@@ -1662,7 +1662,7 @@ class XmlForm_Field_Currency extends XmlForm_Field_SimpleText {
|
|||||||
|
|
||||||
foreach ( $values as $v ) {
|
foreach ( $values as $v ) {
|
||||||
$html = '';
|
$html = '';
|
||||||
$currency = preg_replace( '/([#,.])/', '',$this->mask);
|
$currency = preg_replace( '/([_;#,.])/', '',$this->mask);
|
||||||
if (! $v) $v= $currency;
|
if (! $v) $v= $currency;
|
||||||
if ($this->renderMode === 'edit'){ //EDIT MODE
|
if ($this->renderMode === 'edit'){ //EDIT MODE
|
||||||
$readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1') ? 'readOnly="readOnly"' : '';
|
$readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1') ? 'readOnly="readOnly"' : '';
|
||||||
|
|||||||
Reference in New Issue
Block a user