Actions
Bug #77738
closedStandard language value not saved for language selection field
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2016-09-01
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
language, backend
Complexity:
medium
Is Regression:
Yes
Sprint Focus:
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.
Files
Actions