nova-searchable-select icon indicating copy to clipboard operation
nova-searchable-select copied to clipboard

Resource action returns null

Open freshway opened this issue 5 years ago • 2 comments

I try to use it on Resource Action.

I declared it as follow:

return [
	SearchableSelect::make("User", "user")->resource(\App\Nova\User::class),
];

When i handle submited action, i dump $fields and the result is:

"user" => "null"

I feel that, its a great component, but, many times i need work with actions. I hope you can solve this. Thanks

freshway avatar Nov 28 '19 12:11 freshway

Is there any update on this? I am having the same problem. I only know that something strange happens in my case, since the component does not work for me in a specific resource.

That is my resource Escuela. escuelaPrint

Here I define the arguments of the SearcheableSelect component. declaration

This is the error, returns null on all objects error

Any ideas on what I'm doing wrong?

YarinceP avatar Feb 07 '20 15:02 YarinceP

Difficult to say from the top of my head I'd have to test it. Currently I'm really swamped with other work so have a really difficult time maintaining this as I'm not actively using Nova right now.

slovenianGooner avatar Feb 07 '20 17:02 slovenianGooner