nova-issues
nova-issues copied to clipboard
Action class always returns 1 model, regardless of the items the user selects
- Laravel Version: 10.11.2
- Nova Version: 4.35.0
- PHP Version: 8.3
- Database Driver & Version:
- Operating System and Version: CentOS
- Browser type and version: Chrome latest
- Reproduction Repository: https://github.com/###/###
Description:
I can only retrieve one item for my action when selecting multiple items on the index page, unless I update Laravel Nova to version 4.34.3.
I searched for the problem. this class should be fixed:
\Laravel\Nova\Http\Requests\ActionRequest::toSelectedResourceQuery
It always returns 1 model, regardless of the items the user selects:
$this->toQueryWithoutScopes()->whereKey(explode(',', $this->resources))