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)) { timeAgo($comment->timestamp) ?> -

(translate('Comment'); ?>): ', $commentText) ?>

+

(translate('Comment'); ?>): ', $this->createTicketLinks($comment->comment)) ?>