'0' should be accepted in title field

Created on 18 May 2021, over 3 years ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

User should be able to use '0' in title field.
When user fills '0', the system responds unrelated error message.

Steps to reproduce

In context add/edit form,

Fill '0' in title field
Fill any concrete value in URL field

Save form and we will get error message: 'Token field is required'

Proposed resolution

Use isset() or strlen() instead of empty().

Remaining tasks

User interface changes

No.

API changes

No.

Data model changes

No.

🐛 Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

🇯🇵Japan smori1983

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024