diff --git a/CHANGELOG b/CHANGELOG index 90008c0e0..c6fa7a9e8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -385,6 +385,7 @@ - fix calculating password strength when editing user data - add new menu item 'Import/Export' in admin area - move import of users into menu 'User/Group management' +- show categories on document details page like in list of documents -------------------------------------------------------------------------------- Changes in version 5.1.45 diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 20df66eb2..a18c3de2d 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -540,9 +540,12 @@ $(document).ready( function() { getName()); - echo implode(', ', $ct); + foreach($cats as $cat) { + $color = substr(md5($cat->getName()), 0, 6); + $ct[] = "".htmlspecialchars($cat->getName()).""; +// $ct[] = htmlspecialchars($cat->getName()); + } + echo implode(' ', $ct); ?>