From 140226e1ad06c7d1a0be7e9008df862ecb44f51d Mon Sep 17 00:00:00 2001 From: Alan McCoy Date: Thu, 16 Nov 2023 10:35:43 -0500 Subject: [PATCH] Allow editing description for existing meetings --- mod_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_form.php b/mod_form.php index 773956c0..48250c18 100644 --- a/mod_form.php +++ b/mod_form.php @@ -1011,7 +1011,7 @@ public function validation($data, $files) { // Only check for scheduled meetings. if (empty($data['recurring'])) { // Make sure start date is in the future. - if ($data['start_time'] < time()) { + if ($data['start_time'] < time() && $data['meeting_id'] < 0) { $errors['start_time'] = get_string('err_start_time_past', 'zoom'); } @@ -1023,7 +1023,7 @@ public function validation($data, $files) { } } else if ($data['recurring'] == 1 && $data['recurrence_type'] != ZOOM_RECURRINGTYPE_NOTIME) { // Make sure start date time (first potential date of next meeting) is in the future. - if ($data['start_time'] < time()) { + if ($data['start_time'] < time() && $data['meeting_id'] < 0) { $errors['start_time'] = get_string('err_start_time_past_recurring', 'zoom'); }