mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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) {
|
||||
$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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue