statamic-rad-pack / runway

Eloquently manage your database models in Statamic.
https://statamic.com/addons/rad-pack/runway
MIT License
112 stars 47 forks source link

[7.x] Check if field is read_only #496

Closed mefenlon closed 4 months ago

mefenlon commented 4 months ago

Checks if a HasManyFieldtype is set to read_only

duncanmcclean commented 4 months ago

Thanks for this pull request!

However, I don't think this is necessarily the right fix.....

When fieldtypes are set to read-only, they should still be calling the fieldtype's process method, since technically changes could still be made (eg. with custom JavaScript), even if the user can't edit the field directly.

If you don't want changes to be saved, add save: false to your field's config.