mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: avoid a CSSClass is added to a veiwable data twice.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64328 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
461b57a647
commit
ec1724cc4d
@ -888,7 +888,7 @@ class ViewableData extends Object implements IteratorAggregate {
|
||||
}
|
||||
|
||||
// optionally add template identifier
|
||||
if(isset($this->template) && $this->template != $this->class) {
|
||||
if(isset($this->template) && !in_array($this->template, $classes)) {
|
||||
$classes[] = $this->template;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user