mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG: correct handling of multiple classes
This commit is contained in:
parent
80bcf5e713
commit
9fc58feb03
@ -1840,7 +1840,12 @@ class LeftAndMain_TreeNode extends ViewableData {
|
||||
$classes = $this->obj->CMSTreeClasses();
|
||||
if($this->isCurrent) $classes .= " current";
|
||||
$flags = $this->obj->hasMethod('getStatusFlags') ? $this->obj->getStatusFlags() : false;
|
||||
if($flags) $classes .= ' status-' . implode('status-', array_keys($flags));
|
||||
if ($flags) {
|
||||
$statuses = array_keys($flags);
|
||||
foreach ($statuses as $s) {
|
||||
$classes .= ' status-' . $s;
|
||||
}
|
||||
}
|
||||
return $classes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user