Skip to content

Commit 11ba3e9

Browse files
committed
fix: clear selection plan on track change if does not belongs
1 parent bf3fc13 commit 11ba3e9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/Models/Foundation/Summit/Events/Presentations/Presentation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,6 +2192,9 @@ public function setCategory(PresentationCategory $category)
21922192
// then we need to clear up all selections ( individual / team)
21932193
$this->selected_presentations->clear();
21942194
}
2195+
if($this->hasSelectionPlan() && !$this->selection_plan->hasTrack($category)){
2196+
$this->clearSelectionPlan();
2197+
}
21952198
return parent::setCategory($category);
21962199
}
21972200

0 commit comments

Comments
 (0)