Issue Bug Closed

#77738Standard language value not saved for language selection field

Florian Baumann 09/01/16, 10:35 updated 09/01/16, 16:50

Description

After upgrading our instances to 7.6.10, we discovered that the language value for the standard language (sys_language_uid = 0) is not saved in the DB.

We built a custom language selection field that is rendered as checkboxes in BE with the following TCA:

 'allowed_languages' => array(
                'label' => 'LLL:EXT:sfpdownloadcenter/Resources/Private/Language/locallang_db.xlf:tca.field.allowed_languages',
                'l10n_mode' => 'exclude',
                'config' => array(
                        'type' => 'select',
                        'special' => 'languages',
                        'maxitems' => 1000,
                        'renderMode' => 'checkbox'
                )
  ),

All languages != sys_language_uid = 0 are saved properly in the DB.

See attached screenshots for further explanation.

The field is added to the table sys_file_metadata and defined as follows:

allowed_languages varchar(255) DEFAULT '' NOT NULL

Actually it should save all the checked boxes but it just skips the one for the standard language.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.