Validate if the breakpoints are different

Created on 22 February 2023, almost 2 years ago

Problem/Motivation

Inside of Global Settings page we currently have a lot of breakpoints which is nice, but currently the use can put repeated values there and theoretically all the breakpoints must be different. If the editor put two breakpoints with the same value clarly is a content issue, but since the class EbtCoreSettingsForm is extending the class ConfigFormBase we can also validate this in the formValidate

Steps to reproduce

Proposed resolution

Add a formValidate and compare the variables of breakpoints, if find a repeated use the Form API with formSetError with this validation

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
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.71.5 2024