Skip to content

Commit

Permalink
Fixed duplicated seating plan being assigned the original event
Browse files Browse the repository at this point in the history
  • Loading branch information
icewindow committed Nov 25, 2023
1 parent d7b1ef4 commit f5a491f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ protected function duplicate(Event $event, Request $request): RedirectResponse {
// Copy seating plan
$dupe = $plan->replicate();
$dupe->status = 'DRAFT';
$dupe->event_id = $event->id;
unset($dupe->slug);

if ($request->filled('name_override')) {
Expand Down

0 comments on commit f5a491f

Please sign in to comment.