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

Edit button on ResourceTableRow not redirecting to the pivot form fields #210

Open
lluisandreu opened this issue Feb 4, 2025 · 0 comments · May be fixed by #211
Open

Edit button on ResourceTableRow not redirecting to the pivot form fields #210

lluisandreu opened this issue Feb 4, 2025 · 0 comments · May be fixed by #211

Comments

@lluisandreu
Copy link

This issue is described here: laravel/nova-issues#6707 (comment)

After updating Laravel Nova 4 to 5 I am experiencing and issue with the BelongsToMany class: I am unable to edit the "pivot" fields defined in the ->fields() method, instead it redirects to the resource edit page. However, I can see these fields when attaching a resource.

By unistalling nova-sortable it works as defined so I suspect there's an issue with the component or similar.

Image

BelongsToMany::make(__('City tours'), 'cityTours', CityTour::class)
    ->fields(function ($request, $relatedModel) {
        return [
            Select::make(__('Status'), 'status')
                ->options(UserCityTour::$status)
                ->displayUsingLabels(),

            Textarea::make(__('Visits JSON'), 'visits')->readonly(),

            Boolean::make(__('Repeated'), 'repeated')->readonly(),
        ];
    }
```),
crynobone added a commit to crynobone/nova-sortable that referenced this issue Feb 5, 2025
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

Successfully merging a pull request may close this issue.

1 participant