mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
79a7e6d27a
commit
91c0ca0755
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user