Auditionadmin 68 #85

Merged
okorpheus merged 11 commits from auditionadmin-68 into master 2024-10-31 17:22:49 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 4528793303 - Show all commits

View File

@ -22,6 +22,7 @@ class ScoreController extends Controller
public function destroyScore(ScoreSheet $score) public function destroyScore(ScoreSheet $score)
{ {
CalculatedScore::where('entry_id', $score->entry_id)->delete();
if ($score->entry->audition->hasFlag('seats_published')) { if ($score->entry->audition->hasFlag('seats_published')) {
return redirect()->back()->with('error', 'Cannot delete scores for an entry where seats are published'); return redirect()->back()->with('error', 'Cannot delete scores for an entry where seats are published');
} }