Hi everyone!
I have an error patching an entity with validation rules. I pass a fieldList in patchEntity arguments with form inputs with values to patch, but the result of save function is false. Anyone have idea of what hapends?
Thanks a lot.
Have you looked at the ->errors()
in your entity after patching, or after the save fails?
Thank you!
I had misinterpreted the use of the fieldList.
I thought that it prevented editing unwanted fields and also disabled validation rules for fields that were not in fieldList, but I printed entity errors and see many validation messages.
I think that that the better solution is an specific validator for this case (only edit few attributes in the entity), better than include hidden inputs in edit form.