Issue Bug Closed

#75296Table be_users doesn't support a language key with 2+ chars

José Ricardo 03/29/16, 16:09 updated 10/17/17, 23:15

Description

On table be_users, the column lang is a char(2), which allows language keys like “en” and “de”, but does not for “pt_BR” or “fr_CA”.
When trying to create a user with these default languages, a flash message is shown:

These fields of record #id# in table “be_users” have not been saved correctly: lang! The values might have changed due to type casting of the database.

Changing the column to varchar(5) solves the problem.

Reviews 1