From 84a7b17cb43bed1636e3b714369efe1aa0e6e4dd Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 18 Jan 2009 22:47:02 +0000 Subject: [PATCH] ENHANCEMENT Disabled Translatab-e>augmentWrite() - was only needed for the blacklist fields implementation which is inactive for the moment git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@70319 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Translatable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/model/Translatable.php b/core/model/Translatable.php index 2401e0d1e..9cac41b0a 100755 --- a/core/model/Translatable.php +++ b/core/model/Translatable.php @@ -495,6 +495,7 @@ class Translatable extends DataObjectDecorator { return $record; } + /* function augmentWrite(&$manipulation) { if(!Translatable::is_enabled()) return; @@ -505,7 +506,7 @@ class Translatable extends DataObjectDecorator { $newManip = array(); foreach($manipulation as $table => $manip) { if(strpos($table, "_versions") !== false) continue; - /* + foreach($this->fieldBlackList as $blackField) { if(isset($manip["fields"][$blackField])) { if($this->isTranslation()) { @@ -520,10 +521,10 @@ class Translatable extends DataObjectDecorator { } } } - */ } DB::manipulate($newManip); } + */ //-----------------------------------------------------------------------------------------------//