parent
1628c3b071
commit
1613b0e590
|
|
@ -58,6 +58,7 @@ class AuditionController extends Controller
|
|||
if (empty($alidData['scoring_guide_id'])) {
|
||||
$validData['scoring_guide_id'] = 0;
|
||||
}
|
||||
$new_score_order = Audition::max('score_order') + 1;
|
||||
// TODO Check if room 0 exists, create if not
|
||||
Audition::create([
|
||||
'event_id' => $validData['event_id'],
|
||||
|
|
@ -70,6 +71,7 @@ class AuditionController extends Controller
|
|||
'for_advancement' => $validData['for_advancement'],
|
||||
'scoring_guide_id' => $validData['scoring_guide_id'],
|
||||
'room_id' => 0,
|
||||
'score_order' => $new_score_order,
|
||||
]);
|
||||
|
||||
return to_route('admin.auditions.index')->with('success', 'Audition created successfully');
|
||||
|
|
|
|||
Loading…
Reference in New Issue