diff --git a/modules/monitoring/application/views/helpers/Customvar.php b/modules/monitoring/application/views/helpers/Customvar.php
index 168c18b38..8bfdc3a52 100644
--- a/modules/monitoring/application/views/helpers/Customvar.php
+++ b/modules/monitoring/application/views/helpers/Customvar.php
@@ -34,9 +34,11 @@ class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract
return '[]';
}
$out = "
\n";
+
foreach ($array as $val) {
$out .= '- ' . $this->customvar($val) . "
\n";
}
+
return $out . "
\n";
}
@@ -46,6 +48,7 @@ class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract
return '{}';
}
$out = "{\n";
+
foreach ($object as $key => $val) {
$out .= '- '
. $this->view->escape($key)
@@ -53,6 +56,7 @@ class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract
. $this->customvar($val)
. "
\n";
}
+
return $out . "
}";
}
}
diff --git a/modules/monitoring/application/views/scripts/partials/object/detail-content.phtml b/modules/monitoring/application/views/scripts/partials/object/detail-content.phtml
index dbd8abc21..3ab6dab17 100644
--- a/modules/monitoring/application/views/scripts/partials/object/detail-content.phtml
+++ b/modules/monitoring/application/views/scripts/partials/object/detail-content.phtml
@@ -43,7 +43,7 @@
customvars)): ?>
= $this->translate('Custom Variables') ?>
-
+
= $this->render('show/components/customvars.phtml') ?>