conditional-container icon indicating copy to clipboard operation
conditional-container copied to clipboard

#14 Validation related issue

Open nemrutco opened this issue 5 years ago • 0 comments

Another issue related to #14
when password field is nullable, it submits password to db as null and db updates the value to null (db password field is nullable) but when i use without ConditionalContainer, null value does not update db so old password stays. Why does it updates db when field is submit empty? it should ignore the field.

Password::make(__('Password'), 'password')
                    ->onlyOnForms()
                    ->creationRules('required', 'string', 'min:8')
                    ->updateRules('sometimes', 'nullable', 'string', 'min:8')

I am not sure why but sometimes does not work. Not sure if it's Nova's bug or this package's

nemrutco avatar Feb 11 '20 09:02 nemrutco