BUGFIX Adjusted Translatable to api changes from r65581

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65583 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-11 02:37:01 +00:00
parent 79a7e6d27a
commit 91c0ca0755

View File

@ -662,7 +662,7 @@ class Translatable extends DataObjectDecorator {
if (array_search($fieldname,$this->translatableFields) !== false) {
// Duplicate the field
if ($field->Title()) $nonEditableField->setTitle('Original');
$nonEditableField_holder->insertBeforeRecursive($field, $fieldname.'_original');
$nonEditableField_holder->insertBefore($field, $fieldname.'_original');
$tasks['dup'][$fieldname] = $nonEditableField_holder;
}
}