diff --git a/h5p.classes.php b/h5p.classes.php index 9ef5ef5..44ea65d 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -4220,16 +4220,20 @@ class H5PContentValidator { ), (object) array( 'name' => 'yearFrom', - 'type' => 'text', + 'type' => 'number', 'label' => $this->h5pF->t('Years (from-to)'), 'placeholder' => '1991', + 'min' => '-9999', + 'max' => '9999', 'optional' => TRUE ), (object) array( 'name' => 'yearTo', - 'type' => 'text', + 'type' => 'number', 'label' => 'hiddenLabel', 'placeholder' => '1992', + 'min' => '-9999', + 'max' => '9999', 'optional' => TRUE ), (object) array(