diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml index ded9d3836..3db9de338 100644 --- a/modules/monitoring/application/views/scripts/show/components/comments.phtml +++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml @@ -52,16 +52,8 @@ if (empty($object->comments) && ! $addLink) { comments as $comment): ?> tickets ? preg_replace_callback( - $this->tickets->getPattern(), - array($this->tickets, 'createLink'), - $this->escape($comment->comment) -) : $this->escape($comment->comment); - - // Form is unset if the current user lacks the respective permission -if (isset($delCommentForm)) { +if (isset($delCommentForm)) { $deleteButton = clone($delCommentForm); $deleteButton->populate( array( @@ -80,7 +72,7 @@ if (isset($delCommentForm)) { = $this->timeAgo($comment->timestamp) ?> = $deleteButton ?> -
(= $this->translate('Comment'); ?>): = str_replace(array('\r\n', '\n'), '
', $commentText) ?>
(= $this->translate('Comment'); ?>): = str_replace(array('\r\n', '\n'), '
', $this->createTicketLinks($comment->comment)) ?>