From 14c103d0abea1532e25da569e7e5d9e9acd9934c Mon Sep 17 00:00:00 2001 From: Christopher Bischoff Date: Wed, 9 Jul 2014 14:24:47 +0200 Subject: [PATCH] Fixing ::transformCheckboxField() Argument 1 passed to Translatable_Transformation::transformCheckboxField() should be an instance of CheckboxField_Readonly. As mentioned in the docblock, the first Argument is the readonly field to contain the original value. --- code/model/Translatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 2c54b22..fd4d9c5 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1860,7 +1860,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)