diff --git a/mod_form.php b/mod_form.php index 773956c0..8e3015ef 100644 --- a/mod_form.php +++ b/mod_form.php @@ -210,6 +210,10 @@ public function definition() { ZOOM_RECURRINGTYPE_NOTIME => get_string('recurrence_option_no_time', 'zoom'), ]; $mform->addElement('select', 'recurrence_type', get_string('recurrencetype', 'zoom'), $recurrencetype); + // If the defaultrecurring option is active, set default recurrence_type to be No Fixed Time. + if ($config->defaultrecurring == 1) { + $mform->setDefault('recurrence_type', ZOOM_RECURRINGTYPE_NOTIME); + } $mform->hideif('recurrence_type', 'recurring', 'notchecked'); // Repeat Interval options.