-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fixed the deletion of a file #59
Conversation
fixed findFieldByAttribute to look inside tabs fields
Hello @bajramemini, can you merge this to solve the bug on TabsOnEdit? |
Hello @bajramemini, can you merge this to solve the bug on TabsOnEdit? |
Hey! Sorry it took this long for a response. This has become quite a big PR, I'd need to have a look locally first. |
I'm using Nova 3.14.0 and the issue still exists. With |
@golonix Thanks for confirming this. I'll look into merging this soon. |
Thanks for your PR :) |
This PR fixes laravel/nova-issues#1936 by updating the
updateFields
method inEminiarts\Tabs\TabsOnEdit
to return aEminiarts\Tabs\FieldCollection
, which extendsLaravel\Nova\Fields\FieldCollection
instead of a regularIlluminate\Support\Collection
to have access tofindFieldByAttribute
method.Also overwritten the method of
whereInstanceOf
to search through the fields in the tabs instead of the first level element.