diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index ade52821e..195c8fb30 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -3094,7 +3094,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev) if($categories = $document->getCategories()) { $content .= "
"; foreach($categories as $category) - $content .= "".$category->getName()." "; + $content .= "getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()." "; } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title']; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 9e3cd83e2..aa82066fa 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -3039,7 +3039,7 @@ $('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;"' : '').">".$category->getName()." "; + $content .= "getColor() ? ' style="background-color: '.$category->getColor().' !important;"' : '').">".$category->getName()." "; } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title'];