Issue Bug Closed

#70236Backend Forms and localization : readonly fields are empty

Romain Fougier 09/30/15, 21:01 updated 10/21/17, 17:42

Description

Fields with the TCA configuration ‘l10n_display’ => ‘defaultAsReadonly’ are not rendered correctly since 7.5. In localized content, the field is empty (not filled with the default language value).

The problem come from the object class “TYPO3\CMS\Backend\Form\Container\SingleFieldContainer” (line 105),
where $this->data[‘defaultLanguageRow’] doesn’t exist. The default language value is never set.

May be, we can use $this->data[‘defaultLanguageRow’][$fieldName] to define the current value.

Thanks.

Reviews 1