mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-26 00:04:45 +02:00
add whereNull (#680)
Add where null to not include allocations already assigned to a server.
This commit is contained in:
parent
288cbee32f
commit
fdd1b3798c
@ -149,7 +149,7 @@ class AllocationsRelationManager extends RelationManager
|
||||
->multiple()
|
||||
->associateAnother(false)
|
||||
->preloadRecordSelect()
|
||||
->recordSelectOptionsQuery(fn ($query) => $query->whereBelongsTo($this->getOwnerRecord()->node))
|
||||
->recordSelectOptionsQuery(fn ($query) => $query->whereBelongsTo($this->getOwnerRecord()->node)->whereNull('server_id'))
|
||||
->label('Add Allocation'),
|
||||
])
|
||||
->bulkActions([
|
||||
|
Loading…
x
Reference in New Issue
Block a user