outl1ne / nova-inline-text-field

This Laravel Nova package adds an inline text field to Nova's arsenal of fields.
MIT License
20 stars 13 forks source link

Call to a member function fillInto() on null (Nova 4.35.3) #14

Open quentinlecler opened 4 weeks ago

quentinlecler commented 4 weeks ago

Resource (fields method)

 Tab::make(__('Coordonnées'), [
 Text::make('firstname', 'firstname'),
  InlineText::make('lastname', 'lastname'),
...

Error

exception
: 
"Error"
file
: 
"C:\\Users\\lecle\\Herd\\simucredv4\\vendor\\outl1ne\\nova-inline-text-field\\src\\Http\\Controllers\\NovaInlineTextFieldController.php"
line
: 
41
message
: 
"Call to a member function fillInto() on null"

There is an error occured when trying to update the field.

toddb02 commented 3 weeks ago

I can report this behavior as well. It is if you have the field in the fieldsForDetail method but it is not in the fields method on the Nova resource. Adding it to the fields method resolves the issue.

quentinlecler commented 3 weeks ago

I can report this behavior as well. It is if you have the field in the fieldsForDetail method but it is not in the fields method on the Nova resource. Adding it to the fields method resolves the issue.

It was on the fields method already