From 37e38e09559da05be7854337832b28d7c755dee3 Mon Sep 17 00:00:00 2001 From: Karen Liu <36342242+karenliulll@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:07:41 -0500 Subject: [PATCH 1/2] Change recurrence type default option to "No Fixed Time" --- mod_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_form.php b/mod_form.php index 773956c0..94d6cb31 100644 --- a/mod_form.php +++ b/mod_form.php @@ -204,10 +204,10 @@ public function definition() { // Add options for recurring meeting. $recurrencetype = [ + ZOOM_RECURRINGTYPE_NOTIME => get_string('recurrence_option_no_time', 'zoom'), ZOOM_RECURRINGTYPE_DAILY => get_string('recurrence_option_daily', 'zoom'), ZOOM_RECURRINGTYPE_WEEKLY => get_string('recurrence_option_weekly', 'zoom'), ZOOM_RECURRINGTYPE_MONTHLY => get_string('recurrence_option_monthly', 'zoom'), - ZOOM_RECURRINGTYPE_NOTIME => get_string('recurrence_option_no_time', 'zoom'), ]; $mform->addElement('select', 'recurrence_type', get_string('recurrencetype', 'zoom'), $recurrencetype); $mform->hideif('recurrence_type', 'recurring', 'notchecked'); From 5c222b136f4930826d9d330a7b6653d5904bae78 Mon Sep 17 00:00:00 2001 From: Karen Liu Date: Tue, 28 Nov 2023 10:04:27 -0500 Subject: [PATCH 2/2] A different approach to changing default recurrence type --- mod_form.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod_form.php b/mod_form.php index 94d6cb31..8e3015ef 100644 --- a/mod_form.php +++ b/mod_form.php @@ -204,12 +204,16 @@ public function definition() { // Add options for recurring meeting. $recurrencetype = [ - ZOOM_RECURRINGTYPE_NOTIME => get_string('recurrence_option_no_time', 'zoom'), ZOOM_RECURRINGTYPE_DAILY => get_string('recurrence_option_daily', 'zoom'), ZOOM_RECURRINGTYPE_WEEKLY => get_string('recurrence_option_weekly', 'zoom'), ZOOM_RECURRINGTYPE_MONTHLY => get_string('recurrence_option_monthly', 'zoom'), + 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.