Set the "Active" field as number to allow only numeric values instead of open string

Created on 20 February 2023, almost 2 years ago

Problem/Motivation

In the field "active" currently we need to use int value, so only numeric. In the JS we're using this as int, but in the Form API for the editors we're accepting any type of value, including open string with special chars and letters

Steps to reproduce

Create a new items, use the active field with non-numerical value and save

Proposed resolution

We can update the Form API in the render array and set the fieldtype number instead of textfield and it'll works

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