improve previous commit: also fix locations
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)
ChangeLog
wwwroot/inc/interface.php

index 2bc951e43d9bbf1bc7ec28cda75569d4736abef3..f5f1d3bcde5953fa9ecadc1a9fc92c1f665b64d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,7 +2,7 @@
        update: SNMP support for Cisco 2960X-24PS-L, 2960X-24PD-L
        update: syncdomain.php now provides some new CLI options and better lockfile handling
 0.20.8
-       bugfix: properly format comment text for racks
+       bugfix: properly format comment text for locations and racks
 0.20.7 2014-03-03
        bugfix: IP tree expansion button was broken when MAX_UNFILTERED_ENTITIES was set
        bugfix: fix URL detection bug introduced in bugfix to #1023 (#1103)
index 9b7bac8052d5ac837d6c11bb20a8425b00dd510e..99463c19ad24221d661c429181e521cf05534b98 100644 (file)
@@ -4052,9 +4052,13 @@ function renderLocationPage ($location_id)
                )
                        $summary['{sticker}' . $record['name']] = formatAttributeValue ($record);
        $summary['tags'] = '';
-       if (strlen ($locationData['comment']))
-               $summary['Comment'] = $locationData['comment'];
        renderEntitySummary ($locationData, 'Summary', $summary);
+       if ($locationData['comment'] != '')
+       {
+               startPortlet ('Comment');
+               echo '<div class=commentblock>' . string_insert_hrefs ($locationData['comment']) . '</div>';
+               finishPortlet ();
+       }
        renderFilesPortlet ('location', $location_id);
        echo '</td>';