#5534 - No server-side field validation for field hooks (catalogues)

This is a spacer post for a website comment topic. The content this topic relates to: #5534 - No server-side field validation for field hooks (catalogues)
Automated response: No server-side field validation for field hooks (catalogues)

There is no server-side validation when adding or editing catalogue entries. The only validation is JavaScript-side. But someone can modify or bypass the JS in their browser to force validation to pass, thereby resulting in the form getting submitted and the catalogue entry having invalid values.

This fix adds required field validation on a high-level (wherever the hooks are called) and field-specific validation where it was missing in inputted_to_field_value.

Do NOT use themes/default/javascript/checking.js in the hotfix; I accidentally committed test code.
Another issue I forgot to mark resolved. This was implemented in v11 too a couple days ago. Not a perfect solution but it gets the job done.
0 guests and 0 members have recently viewed this.