Skip to content

Commit

Permalink
Fixed saving of missing track
Browse files Browse the repository at this point in the history
  • Loading branch information
warren5236 committed Oct 6, 2023
1 parent e851214 commit 797a87c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/Talk/TalkController.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ public function editTalk($eventSlug, $talkSlug)
}
}

if (empty($values['track'])) {
foreach ($talk->getTracks() as $t) {
$talkApi->removeTalkFromTrack($t->remove_track_uri);
}
}

$talkUrl = $this->application->urlFor('talk', ['eventSlug' => $eventSlug, 'talkSlug' => $talkSlug]);
$this->application->redirect($talkUrl);
} catch (\RuntimeException $e) {
Expand Down

0 comments on commit 797a87c

Please sign in to comment.