-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
bugVerified bug by the Nova teamVerified bug by the Nova team
Milestone
Description
- Laravel Version: 10.43.0
- Nova Version: 4.32.11
- PHP Version: 8.3.2
- Database Driver & Version: Mysql 8.0.33
- Operating System and Version: MacOS 14.2.1
- Browser type and version: Google Chrome 121.0.6167.160
- Reproduction Repository: https://github.com/mostafaznv/nova-searchable-filters-bug
Description:
I'm facing an issue with belongsTo
relationships in my Nova resources.
If I enable the searchable
method on the belongsTo
field, the filter box crashes, and I receive a console error.
These fields work fine when I want to create
/update
an item on the add
/edit
pages.
However, when I attempt to filter results on the index page, the filter box crashes, and I receive a console error.
Reproduction Steps:
- Clone the repository
- Open the
.env
file and set your database credentials (DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
) - Open the
.env
file and set yourNOVA_LICENSE_KEY
- Run
composer install
- Migrate and seed the database using the following command:
php artisan migrate:fresh --seed
- Run the server using the following command:
php artisan serve
- Visit the admin panel by going to http://127.0.0.1:8000/nova
- Your credentials are:
- Email:
admin@nova.com
- Password:
password
- Email:
- Open the inspect element tool in Chrome/Firefox and navigate to the
console
tab - Go to the
Article
resource and try to filter the results using theUser
/Category
filter. - Boom! You will see the error in the console, and the filter box will crash until you close it or refresh the page.
Related To: #6118
afshiney
Metadata
Metadata
Assignees
Labels
bugVerified bug by the Nova teamVerified bug by the Nova team