From 4d3593946134405114d58cc6c12cdd47283aab13 Mon Sep 17 00:00:00 2001 From: ismud Date: Tue, 20 Oct 2015 18:57:32 +0200 Subject: [PATCH] Compatibility issue with SS 3.2.0 --- code/model/Translatable.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 4975da3..86682ea 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1074,12 +1074,11 @@ class Translatable extends DataExtension implements PermissionProvider { if($canAddLocale) { // Only add create button if new languages are available $tab->push( - $createButton = InlineFormAction::create( + $createButton = FormAction::create( 'createtranslation', _t('Translatable.CREATEBUTTON', 'Create') )->addExtraClass('createTranslationButton') ); - $createButton->includeDefaultJS(false); // not fluent API... } else { $tab->removeByName('NewTransLang'); $tab->push(new LiteralField( @@ -1889,7 +1888,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)