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.
This commit is contained in:
Christopher Bischoff 2014-07-09 14:24:47 +02:00
parent 7342850139
commit 14c103d0ab

View File

@ -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)