diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index eeaa06383..cc4e417ba 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -2877,6 +2877,11 @@ $('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) + $content .= "".$category->getName()." "; + } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title']; $content .= "\n"; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 1a181e7f3..1a092cfaf 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -2919,6 +2919,11 @@ $('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) + $content .= "".$category->getName()." "; + } if(!empty($extracontent['bottom_title'])) $content .= $extracontent['bottom_title']; $content .= "\n";