Merge branch 'MDL-59713-master-2' of git://github.com/ryanwyllie/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 29 Aug 2017 07:28:45 +0000 (15:28 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 29 Aug 2017 07:28:45 +0000 (15:28 +0800)
1  2 
calendar/classes/local/event/forms/create.php
theme/bootstrapbase/less/moodle/calendar.less
theme/bootstrapbase/style/moodle.css

@@@ -42,12 -42,9 +42,13 @@@ class create extends \moodleform 
  
          $mform = $this->_form;
          $haserror = !empty($this->_customdata['haserror']);
+         $starttime = isset($this->_customdata['starttime']) ? $this->_customdata['starttime'] : 0;
          $eventtypes = calendar_get_all_allowed_types();
  
 +        if (empty($eventtypes)) {
 +            print_error('nopermissiontoupdatecalendar');
 +        }
 +
          $mform->setDisableShortforms();
          $mform->disable_form_change_checker();
  
Simple merge