mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
bfojcapell: Added function insertBeforeRecursive (see www.silverstripe.com/google-summer-of-code-forum/show/3005). This function is only called in Translatable.php at this moment, so if finally insertBefore gets a recursive behaviour then the call can be changed and insertBeforeRecursive deleted.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42111 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
864c0ba021
commit
490d8a0b0a
@ -77,6 +77,12 @@ class TabSet extends CompositeField {
|
||||
$field->setTabSet($this);
|
||||
}
|
||||
|
||||
public function insertBeforeRecursive($field, $insertBefore, $level) {
|
||||
$level = parent::insertBeforeRecursive($field, $insertBefore, $level+1);
|
||||
if ($level === 0) $field->setTabSet($this);
|
||||
return $level;
|
||||
}
|
||||
|
||||
public function removeByName( $tabName ) {
|
||||
parent::removeByName( $tabName );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user