Skip to content

Commit

Permalink
Merge pull request #545 from ncstate-delta/297-ability-to-edit-a-zoom…
Browse files Browse the repository at this point in the history
…-event-that-is-in-the-past

Allow editing description for existing meetings
  • Loading branch information
jrchamp authored Nov 30, 2023
2 parents b10b29a + 140226e commit 7baf3c2
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 @@ -1015,7 +1015,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 @@ -1027,7 +1027,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 7baf3c2

Please sign in to comment.