Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associatable search requests return 404 #6556

Closed
lozobojan opened this issue Oct 10, 2024 · 4 comments
Closed

Associatable search requests return 404 #6556

lozobojan opened this issue Oct 10, 2024 · 4 comments
Labels
bug Verified bug by the Nova team fix incoming A fix is in review

Comments

@lozobojan
Copy link

  • Laravel Version: 10.48.22
  • Nova Version: 4.35.2
  • PHP Version: 8.2
  • Database Driver & Version: MySQL 5.7
  • Operating System and Version: ubuntu 22.04

Description:

From this version, associatable search requests return 404.

For example, nova-api/customer-complaints/associatable/products?search=beef&resourceId= works in v4.35.1 but not in 4.35.2.

@crynobone
Copy link
Member

Unable to reproduce the issue, please provide full reproducing repository based on fresh installation as suggested in the bug report template (or you can refer to https://github.com/nova-issues for example)

@crynobone crynobone added the needs more info More information is required label Oct 11, 2024
@lozobojan
Copy link
Author

I have a Complaint model that is related to Product model like this:

public function products() { return $this->belongsToMany(\App\Models\Product::class, 'product_complaint', 'complaint_id', 'product_id'); }

In Nova Complaint resource, I defined a Multiselect using https://github.com/outl1ne/nova-multiselect-field package:

Multiselect::make('Products Affected', 'products')->belongsToMany(\App\Nova\Product::class)

The thing is, it works in v4.35.1 but its search for products in v4.35.2 uses this route: nova-api/customer-complaints/associatable/products?search=beef&resourceId= and it returns 404.

@crynobone crynobone added bug Verified bug by the Nova team pending Issues that are pending triage and removed needs more info More information is required labels Oct 11, 2024
@phatmateo
Copy link

For additional context, someone posted this issue on the nova-multiselect-field package repo outl1ne/nova-multiselect-field#255 @crynobone

@jeremynikolic jeremynikolic self-assigned this Oct 12, 2024
@crynobone crynobone added fix incoming A fix is in review and removed pending Issues that are pending triage labels Oct 15, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

4 participants