Skip to content

Commit

Permalink
Allow editing description for existing meetings
Browse files Browse the repository at this point in the history
  • Loading branch information
armccoy committed Nov 16, 2023
1 parent ca6bcd5 commit 140226e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand All @@ -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');
}

Expand Down

0 comments on commit 140226e

Please sign in to comment.