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

Created on 20 February 2023, over 1 year 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.69.0 2024