mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUGFIX: Fixed issue #213 causing crash when accessing a translation with a checkbox
This commit is contained in:
parent
feced03df2
commit
58156353d9
@ -1897,7 +1897,7 @@ class Translatable_Transformation extends FormTransformation {
|
|||||||
* @param FormField $originalField The original editable field containing the translated value
|
* @param FormField $originalField The original editable field containing the translated value
|
||||||
* @return CheckboxField The field with a modified label
|
* @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();
|
$label = $originalField->Title();
|
||||||
$fieldName = $originalField->getName();
|
$fieldName = $originalField->getName();
|
||||||
$value = ($this->original->$fieldName)
|
$value = ($this->original->$fieldName)
|
||||||
|
Loading…
Reference in New Issue
Block a user