diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index a49f13aae..48ad4e194 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -3603,7 +3603,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
*
* @param object $document
* @param object $previewer
- * @param boolean $skipcont set to true if embrasing tr shall be skipped
+ * @param boolean $skipcont set to true if embrasing tr shall be skipped.
* @param integer $version set to a value != 0 for a specific version, otherwise
* the latest version will be used
* @param integer $context specifies the type of list. Can be any value
@@ -3694,15 +3694,6 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
if($comment) {
$content .= "
".htmlspecialchars($comment)."";
}
- if($categories = $document->getCategories()) {
- $content .= "
";
- foreach($categories as $category) {
- $color = substr(md5($category->getName()), 0, 6);
- $content .= "".htmlspecialchars($category->getName())." ";
- }
- }
- if(!empty($extracontent['bottom_title']))
- $content .= $extracontent['bottom_title'];
if($context) {
$attrdefgrps = $document->getParent()->getAttributeDefintionGroupList(true);
@@ -3733,7 +3724,8 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
if($categories = $document->getCategories()) {
$content .= "
";
foreach($categories as $category) {
- $content .= "getColor() ? ' style="background-color: '.$category->getColor().' !important; color: '.(getColorBrightness($category->getColor()) < 0.8 ? 'white' : 'black').';"' : '').">".$category->getName()." ";
+ $color = $category->getColor() ? $category->getColor() : substr(md5($category->getName()), 0, 6);
+ $content .= "".htmlspecialchars($category->getName())." ";
}
}
if(!empty($extracontent['bottom_title']))