Skip to content

Commit

Permalink
Merge branch 'MDL-67703-master' of git://github.com/lameze/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
abgreeve committed Jan 23, 2020
2 parents e2c5315 + 858f41a commit c3c0d06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calendar/classes/local/event/forms/managesubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public function definition() {
$mform->addElement('filepicker', 'importfile', get_string('importfromfile', 'calendar'), null, array('accepted_types' => '.ics'));

// Disable appropriate elements depending on import from value.
$mform->disabledIf('pollinterval', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);
$mform->disabledIf('url', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);
$mform->disabledIf('importfile', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_URL);
$mform->hideIf('pollinterval', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);
$mform->hideIf('url', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_FILE);
$mform->hideIf('importfile', 'importfrom', 'eq', CALENDAR_IMPORT_FROM_URL);

// Add the select elements for the available event types.
$this->add_event_type_elements($mform, $eventtypes);
Expand Down

0 comments on commit c3c0d06

Please sign in to comment.