mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Add search param to query modification function on attach/associate actions
This commit is contained in:
@@ -201,6 +201,7 @@ class AssociateAction extends Action
|
||||
if ($this->modifyRecordSelectOptionsQueryUsing) {
|
||||
$relationshipQuery = $this->evaluate($this->modifyRecordSelectOptionsQueryUsing, [
|
||||
'query' => $relationshipQuery,
|
||||
'search' => $search,
|
||||
]) ?? $relationshipQuery;
|
||||
}
|
||||
|
||||
|
||||
@@ -203,6 +203,7 @@ class AttachAction extends Action
|
||||
if ($this->modifyRecordSelectOptionsQueryUsing) {
|
||||
$relationshipQuery = $this->evaluate($this->modifyRecordSelectOptionsQueryUsing, [
|
||||
'query' => $relationshipQuery,
|
||||
'search' => $search,
|
||||
]) ?? $relationshipQuery;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user