mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
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:
parent
33066bffda
commit
84a7b17cb4
@ -495,6 +495,7 @@ class Translatable extends DataObjectDecorator {
|
|||||||
return $record;
|
return $record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
function augmentWrite(&$manipulation) {
|
function augmentWrite(&$manipulation) {
|
||||||
if(!Translatable::is_enabled()) return;
|
if(!Translatable::is_enabled()) return;
|
||||||
|
|
||||||
@ -505,7 +506,7 @@ class Translatable extends DataObjectDecorator {
|
|||||||
$newManip = array();
|
$newManip = array();
|
||||||
foreach($manipulation as $table => $manip) {
|
foreach($manipulation as $table => $manip) {
|
||||||
if(strpos($table, "_versions") !== false) continue;
|
if(strpos($table, "_versions") !== false) continue;
|
||||||
/*
|
|
||||||
foreach($this->fieldBlackList as $blackField) {
|
foreach($this->fieldBlackList as $blackField) {
|
||||||
if(isset($manip["fields"][$blackField])) {
|
if(isset($manip["fields"][$blackField])) {
|
||||||
if($this->isTranslation()) {
|
if($this->isTranslation()) {
|
||||||
@ -520,10 +521,10 @@ class Translatable extends DataObjectDecorator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
DB::manipulate($newManip);
|
DB::manipulate($newManip);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------------------------//
|
//-----------------------------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user