Skip to content

Commit b51305e

Browse files
committed
Fixed opendcim#733
1 parent 55a2416 commit b51305e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cabnavigator.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,10 @@ function renderUnassignedTemplateOwnership($noTemplFlag, $noOwnerFlag, $device)
236236
}
237237

238238
foreach(Department::GetDepartmentListIndexedbyID() as $deptid => $d){
239-
if($d->DeptColor!="#FFFFFF"){
240-
// If head is empty then we don't have any custom colors defined above so add a style container for these
241-
$head=($head=="")?"\t\t<style type=\"text/css\">\n":$head;
242-
$head.="\t\t\t.dept$deptid {background-color:$d->DeptColor;}\n";
243-
$legend.="\t\t<div class=\"legenditem hide\"><span class=\"border colorbox dept$deptid\"></span> - <span>$d->Name</span></div>\n";
244-
}
239+
// Add a style container for these
240+
$head=($head=="")?"\t\t<style type=\"text/css\">\n":$head;
241+
$head.="\t\t\t.dept$deptid {background-color:$d->DeptColor;}\n";
242+
$legend.="\t\t<div class=\"legenditem hide\"><span class=\"border colorbox dept$deptid\"></span> - <span>$d->Name</span></div>\n";
245243
}
246244

247245
// add legend for the flags which actually are used in the cabinet

0 commit comments

Comments
 (0)