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
This commit is contained in:
Ingo Schommer 2009-01-18 22:47:02 +00:00
parent 33066bffda
commit 84a7b17cb4

View File

@ -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);
}
*/
//-----------------------------------------------------------------------------------------------//