Problem/Motivation

(Validation: Text length should not allow negative value)

Proposed resolution

(Either validate Text length filed or use appropriate field to accept only positive numeric values. Attaching screenshot of the Error )

"The website encountered an unexpected error. Please try again later."

User interface changes

(N/A)

API changes

(N/A)

Data model changes

(N/A)

Comments

xaiwant created an issue. See original summary.

mithun s’s picture

StatusFileSize
new562 bytes

The text length validation is fixed. Please review the patch

mithun s’s picture

Status: Needs work » Needs review
StatusFileSize
new25.18 KB

After changes in the code:

sdxt’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new30.11 KB

Hi @Mithun S, I have applied the patch and found it working, please refer attached screenshot.
However I would suggest to use '#min' => 1 property in field 'title_length' in TitleLengthForm.

a.boutakaoua’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.