mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-10048 General calendar view enhancements as per spec with regard to event highlighting
This commit is contained in:
parent
10b1d59829
commit
edad8bec3c
@ -570,9 +570,11 @@ function validate_form(&$form, &$err) {
|
||||
if(empty($form->name)) {
|
||||
$err['name'] = get_string('errornoeventname', 'calendar');
|
||||
}
|
||||
/* Allow events without a description
|
||||
if(empty($form->description)) {
|
||||
$err['description'] = get_string('errornodescription', 'calendar');
|
||||
}
|
||||
*/
|
||||
if(!checkdate($form->startmon, $form->startday, $form->startyr)) {
|
||||
$err['timestart'] = get_string('errorinvaliddate', 'calendar');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user