feat: filter out empty IDs when getting busy study group members and make the members select field live.
This commit is contained in:
parent
299bb34236
commit
4799490ecf
@ -148,6 +148,7 @@ public function studyGroupFormSchema(): array
|
|||||||
->multiple()
|
->multiple()
|
||||||
->searchable()
|
->searchable()
|
||||||
->required()
|
->required()
|
||||||
|
->live()
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
|
|
||||||
TextInput::make('name')
|
TextInput::make('name')
|
||||||
|
|||||||
@ -65,6 +65,6 @@ function ($q) use ($courseIds, $excludeGroupId) {
|
|||||||
->pluck('leader_id')
|
->pluck('leader_id')
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
return array_unique(array_merge($busyMemberIds, $busyLeaderIds));
|
return array_unique(array_filter(array_merge($busyMemberIds, $busyLeaderIds)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user