mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
comment Debug.traceback that occur when the field is a tab
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62599 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
955d500a95
commit
6b6209019c
@ -156,7 +156,7 @@ class FieldSet extends DataObjectSet {
|
|||||||
public function removeByName($fieldName, $dataFieldOnly = false) {
|
public function removeByName($fieldName, $dataFieldOnly = false) {
|
||||||
foreach($this->items as $i => $child) {
|
foreach($this->items as $i => $child) {
|
||||||
if(is_object($child) && ($child->Name() == $fieldName || $child->Title() == $fieldName) && (!$dataFieldOnly || $child->hasData())) {
|
if(is_object($child) && ($child->Name() == $fieldName || $child->Title() == $fieldName) && (!$dataFieldOnly || $child->hasData())) {
|
||||||
if($child->class == 'Tab' && !$dataFieldOnly) Debug::backtrace();
|
//if($child->class == 'Tab' && !$dataFieldOnly) Debug::backtrace();
|
||||||
array_splice( $this->items, $i, 1 );
|
array_splice( $this->items, $i, 1 );
|
||||||
break;
|
break;
|
||||||
} else if($child->isComposite()) {
|
} else if($child->isComposite()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user