nova-inline-relationship icon indicating copy to clipboard operation
nova-inline-relationship copied to clipboard

readonly parameter not honored

Open martianatwork opened this issue 5 years ago • 3 comments

If a child has a readonly parameter set, the create & update form will allow the field to be editable

martianatwork avatar Jan 19 '20 15:01 martianatwork

@martianatwork Thanks for the bug. Which relationships are you using when you see this happen?

brandonferens avatar Jan 20 '20 14:01 brandonferens

i end up with same issue,

i use as:

 BelongsTo::make(__('Profile'), 'profile', Profile::class)
                ->inline()
                ->requireChild()
                ->hideFromIndex(),

does not apply readonly fields in profile resource

class Profile extends Resource
{
...
public function fields(Request $request)
{
    return [
        ID::make()->sortable()->hideFromIndex(),

        Text::make(__('ID Number'), 'id_number')
            ->rules('required')->readonly(),
    ];
}
...

nemrutco avatar Feb 13 '20 06:02 nemrutco

any solution to this problem ?

ikramooe avatar Nov 04 '22 21:11 ikramooe