Skip to content

Commit

Permalink
Merge pull request #544 from ncstate-delta/fix/change-default-option-…
Browse files Browse the repository at this point in the history
…of-recurrencetype-dropdown

Fix: change recurrence type default option to "No Fixed Time"
  • Loading branch information
jrchamp authored Nov 30, 2023
2 parents 3cd1bfe + 5c222b1 commit b10b29a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b10b29a

Please sign in to comment.