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

Cannot update attached resource with searchable relation #6266

Closed
webard opened this issue Mar 7, 2024 · 1 comment
Closed

Cannot update attached resource with searchable relation #6266

webard opened this issue Mar 7, 2024 · 1 comment

Comments

@webard
Copy link

webard commented Mar 7, 2024

  • Laravel Version: 10.47.0
  • Nova Version: 4.32.16
  • PHP Version: 8.2.16
  • Database Driver & Version: Mysql 8.2.16
  • Operating System and Version: MacOS 14.3.1
  • Browser type and version: Chrome 122.0.6261.112

Description:

image

Field Permissions is freezed (cannot click or search) when I update attached relation. My field configuration is:

BelongsToMany::make('Permissions', 'permissions', Permission::class)->searchable()->sortable(),

Attaching new resource works perfect:
image

Detailed steps to reproduce the issue on a fresh Nova installation:

  • Connect two resources by BelongsToMany relation
  • Attach something to Resource
  • Try to edit Attached resource
@crynobone crynobone added the pending Issues that are pending triage label Mar 12, 2024
@crynobone
Copy link
Member

Edit many-to-many resources is only designed to allow editing pivot fields and not the related resources itself.

@crynobone crynobone closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2024
@crynobone crynobone removed the pending Issues that are pending triage label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants