BUGFIX: Fixed issue #213 causing crash when accessing a translation with a checkbox

This commit is contained in:
UndefinedOffset 2015-12-02 10:04:22 -04:00
parent feced03df2
commit 58156353d9

View File

@ -1897,7 +1897,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(CheckboxField_Readonly $nonEditableField, CheckboxField $originalField) {
$label = $originalField->Title();
$fieldName = $originalField->getName();
$value = ($this->original->$fieldName)