From 0c55beb31955eb27b190bcdf1eededb9a0ede32b Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Wed, 22 Jan 2014 11:27:11 -0400 Subject: [PATCH] =?UTF-8?q?BUG-13860=20SOLVED=20El=20formato=20de=20fechas?= =?UTF-8?q?=20en=20grillas=20no=20se=20refleja=20de=20acuerdo=20a=20la=20d?= =?UTF-8?q?efinici=C3=B3n=20de=20mascara=20en=20la=20secci=C3=B3n=20HOME?= =?UTF-8?q?=20/=20Inbox=20/=20{seleccionar=20un=20caso}=20/=20en=20el=20mo?= =?UTF-8?q?do=20vista.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulliver/system/class.xmlform.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index d08f57f43..33e3bbdef 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -4409,10 +4409,8 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText } else { $isRequired = '0'; } - if ($v == 'today') { - $mask = str_replace( "%", "", $this->mask ); - $v = date( masktophp($mask, $v) ); - } + $mask = str_replace( "%", "", $this->mask ); + $v = date( masktophp($mask, $v) ); $html = 'NSRequiredValue() . ' class="module_app_input___gray" id="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" name="form[' . $owner->name . '][' . $r . '][' . $this->name . ']" type ="text" size="' . $this->size . '" maxlength="' . $this->maxLength . '" value="' . $this->htmlentities( $v, ENT_COMPAT, 'utf-8' ) . '" pm:required="' . $isRequired . '" style="display:none;' . htmlentities( $this->style, ENT_COMPAT, 'utf-8' ) . '" ' . $this->NSGridType() . '/>' . htmlentities( $v, ENT_COMPAT, 'utf-8' ); } else { $id = 'form[' . $owner->name . '][' . $r . '][' . $this->name . ']';