Feature #60026
Set explicitly 'readOnly' sys_language_uid of child to value, taken from parent record
Status: | New | Start date: | 2014-07-01 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Localization | Spent time: | - | |
Target version: | - | |||
PHP Version: | 5.5 | Sprint Focus: | ||
Complexity: |
Description
After fix of #57063 there is still a case, when record can get sys_language_uid=0.
Whenever 'sys_language_uid' field of child is marked as 'readOnly' in config section, child record again becomes saved with sys_language_uid=0.
This is a common behaviour, since there is no need to allow editors to change language of a localization.
DataMapper needs to set explicitly sys_language_uid to value, taken from parent record, if it doesn't appear in POST and is defined as 'languageField' in 'ctrl' section of TCA.
Technical notes.
If a field is marked as 'readOnly' it is rendered with 'disabled' attribute in HTML, and therefore it's value is not sent to the server. Therefore DataMapper sets sys_language_uid to 0, since nothing comes in POST-request.
Related issues