mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSattr_html :: date : fix default form rule parameters
This commit is contained in:
parent
be9eef7959
commit
0f55f821c6
1 changed files with 1 additions and 3 deletions
|
@ -40,10 +40,8 @@ class LSattr_html_date extends LSattr_html {
|
||||||
*/
|
*/
|
||||||
function addToForm (&$form,$idForm,$data=NULL) {
|
function addToForm (&$form,$idForm,$data=NULL) {
|
||||||
$element = parent::addToForm($form,$idForm,$data);
|
$element = parent::addToForm($form,$idForm,$data);
|
||||||
$form -> addRule($this -> name, 'date', array('format' => $element -> getFormat()) );
|
$form -> addRule($this -> name, 'date', array('msg' => _('Invalid value'), 'params' => array('format' => $element -> getFormat())) );
|
||||||
return $element;
|
return $element;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in a new issue