Compatibility issue with SS 3.2.0

SS3.2.0 enables RECOVERABLE_ERRORs to get shown which breaks showing of Settings tab in translations of SiteTree objects.
This commit is contained in:
ismud 2015-10-20 19:08:12 +02:00
parent 096c006b6a
commit 02d5be1064

View File

@ -1899,7 +1899,7 @@ class Translatable_Transformation extends FormTransformation {
* @param FormField $originalField The original editable field containing the translated value
* @return CheckboxField The field with a modified label
*/
protected function transformCheckboxField(CheckboxField $nonEditableField, CheckboxField $originalField) {
protected function transformCheckboxField(FormField $nonEditableField, FormField $originalField) {
$label = $originalField->Title();
$fieldName = $originalField->getName();
$value = ($this->original->$fieldName)