diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml
index d20cec0c2..e128f8320 100644
--- a/modules/monitoring/application/views/scripts/show/components/comments.phtml
+++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml
@@ -3,7 +3,7 @@
getType() === $object::TYPE_HOST) {
$addCommentLink = $this->href(
@@ -18,9 +18,15 @@
}
?>
+
+ hasPermission('monitoring/command/comment/add')): ?>
- = $this->icon('comment') ?> = $this->translate('Add comment') ?>
+ = $this->icon('comment') ?>
+ = $this->translate('Add comment') ?>
+
+ = '-' ?>
+
|
@@ -43,9 +49,9 @@ foreach ($object->comments as $comment) {
populate(array('comment_id' => $comment->id));
- echo $form;
+ $delCommentForm = clone $delCommentForm;
+ $delCommentForm->populate(array('comment_id' => $comment->id));
+ echo $delCommentForm;
} ?>
(= ucfirst($comment->type) ?>):
|