diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 91b91cd..4a7784f 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1028,6 +1028,10 @@ class Translatable extends DataExtension implements PermissionProvider { $langDropdown->addExtraClass('languageDropdown'); $createButton->addExtraClass('createTranslationButton'); } + + function updateSettingsFields(&$fields) { + return $this->updateCMSFields(); + } /** * Get the names of all translatable fields on this class diff --git a/tests/unit/TranslatableTest.php b/tests/unit/TranslatableTest.php index 1128e52..11ce9bb 100755 --- a/tests/unit/TranslatableTest.php +++ b/tests/unit/TranslatableTest.php @@ -868,7 +868,7 @@ class TranslatableTest extends FunctionalTest { $adminUser->logIn(); - $cmsMain = new CMSMain(); + $cmsMain = new CMSPageEditController(); $origLocale = Translatable::get_current_locale(); Translatable::set_current_locale('fr_FR'); @@ -876,13 +876,11 @@ class TranslatableTest extends FunctionalTest { $form = $cmsMain->getEditForm($frPage->ID); $form->loadDataFrom(array( 'Title' => 'Translated', // $db field - 'ViewerGroups' => $group->ID // $many_many field )); $form->saveInto($frPage); $frPage->write(); $this->assertEquals('Translated', $frPage->Title); - $this->assertEquals(array($group->ID), $frPage->ViewerGroups()->column('ID')); $adminUser->logOut(); Translatable::set_current_locale($origLocale);