BUG 0000 Disabling tempararily the _isodate value for date fields

In dynaforms, feature disabled by wrong logic
This commit is contained in:
Erik Amaru Ortiz
2011-11-30 17:51:06 -04:00
parent 40960d9bc6
commit fa4191cdf9

View File

@@ -3594,7 +3594,7 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
. 'pm:end="'.$endDate.'" '.$onchange.' class="module_app_input___gray" value="'.$value.'"/>';
}
// added isodate format in the data field when it has a mask
/*** Commented because seems is not working well *
$idIsoDate = substr($pID,0,strlen($pID)-1).'_isodate]';
$amask = explode('-',str_replace('%','',$mask));
$axDate = explode('-',$value);
@@ -3607,7 +3607,8 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
}
$html .= '<input type="hidden" id="'.$idIsoDate.'" name="'.$idIsoDate.'" value="'.$valisoDate.'"/>';
***/
if ($this->gridFieldType == '') $html .= $this->renderHint();
return $html;
}