BUGFIX Making Metadata fields writeable in translation mode (see #2993)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65536 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-10 11:11:13 +00:00
parent 69d9521778
commit 5d9550c214

View File

@ -645,7 +645,7 @@ class Translatable extends DataObjectDecorator {
} }
else if(($fieldname = $field->Name()) && array_key_exists($fieldname,$this->original_values)) { else if(($fieldname = $field->Name()) && array_key_exists($fieldname,$this->original_values)) {
// Get a copy of the original field to show the untranslated value // Get a copy of the original field to show the untranslated value
if(is_subclass_of($field->class,'TextareaField')) { if($field instanceof TextareaField) {
$nonEditableField = new ToggleField($fieldname,$field->Title(),'','+','-'); $nonEditableField = new ToggleField($fieldname,$field->Title(),'','+','-');
$nonEditableField->labelMore = '+'; $nonEditableField->labelMore = '+';
$nonEditableField->labelLess = '-'; $nonEditableField->labelLess = '-';