Missing class validation - Use the new generic class validator from EBT Core

Created on 17 February 2023, over 1 year ago

Problem/Motivation

We have a custom class field but currently we don't have a validation on this field, so the user can put any invalid class, or can insert many spaces on this field and it'll be saved.

We implemented a "central" Helper with common validation at EBT Core on ✨ Create a generic Helper at ebt_core side to validate common fields from other ebt_* projects E.g. customClassValidator Fixed . With that isn't necessary use validation in different places to validate the same field type. Since the custom class is used in more than one place we can reuse this same elementValidator

Proposed resolution

Use the elementValidator from Form API to use the Helper class to validate the class from EBT Core

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡§πŸ‡·Brazil RenatoG Campinas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024