Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2026-03-25 19:14:24 +01:00
commit b5a7310206
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -540,9 +540,12 @@ $(document).ready( function() {
<td>
<?php
$ct = array();
foreach($cats as $cat)
$ct[] = htmlspecialchars($cat->getName());
echo implode(', ', $ct);
foreach($cats as $cat) {
$color = substr(md5($cat->getName()), 0, 6);
$ct[] = "<span class=\"badge\" style=\"background-color: #".$color."; color: #".self::getContrastColor($color).";\">".htmlspecialchars($cat->getName())."</span>";
// $ct[] = htmlspecialchars($cat->getName());
}
echo implode(' ', $ct);
?>
</td>
</tr>