Fix error where a modified subscore would not count for seating if there is no advancement.

This commit is contained in:
Matt Young 2025-11-20 10:37:45 -06:00
parent a5b203af2e
commit 55d5dba840
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ class ScoringGuideController extends Controller
'Cannot update a subscore for a different scoring guide'); 'Cannot update a subscore for a different scoring guide');
} }
$validateData = $validateData = $request->validated(); $validateData = $validateData = $request->validated();
if (! auditionSetting('advanceTo')) {
$validateData['for_advance'] = 0;
$validateData['for_seating'] = 1;
}
$subscore->update([ $subscore->update([
'name' => $validateData['name'], 'name' => $validateData['name'],