mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Don't try to set the title if it hasn't been set for us.
This enables the new code to pass the existing tests.
This commit is contained in:
parent
595a6dc333
commit
594448499b
@ -267,10 +267,7 @@ class FieldList extends ArrayList {
|
||||
if(is_a($parentPointer, 'TabSet')) {
|
||||
// use $title on the innermost tab only
|
||||
if ($k == $last_idx) {
|
||||
if (!isset($title)) {
|
||||
$title = $part;
|
||||
}
|
||||
$currentPointer = new Tab($part, $title);
|
||||
$currentPointer = isset($title) ? new Tab($part, $title) : new Tab($part);
|
||||
}
|
||||
else {
|
||||
$currentPointer = new TabSet($part);
|
||||
|
Loading…
Reference in New Issue
Block a user