Plural formula not validated when editing a language, currently WSOD

Created on 8 April 2022, about 3 years ago
Updated 3 July 2025, 3 days ago

Problem/Motivation

Leads to a WSOD when trying to submit the form with invalid value. Exception is not caught, since the validation is only run on custom language addition and not editing an existing language.

Steps to reproduce

Add a language and use "llama" as the formula. WSOD happens.

Proposed resolution

1. Ensure validate handler is added to form submit in edit form (the form build array is different on addition and edit)
2. Change test in patch #2 so it submits "llama" as the plural formula.
3. Assert it gives the appropriate message on adding and editing a language.

Remaining tasks

Patch needed

User interface changes

Validation happens on edit and no WSOD.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇭🇺Hungary Gábor Hojtsy Hungary

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