monitoring: Fix exception if the comment of an acknowledgement is missing

refs #10505
This commit is contained in:
Eric Lippmann 2015-11-16 14:35:48 +01:00
parent 338804c69f
commit ba62753285
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@ $acknowledgement = $object->acknowledgement;
<tr>
<th><?= $this->translate('Acknowledged') ?></th>
<td data-base-target="_self">
<?php if ($acknowledgement): ?>
<dl class="comment-list">
<dt class="comment-header">
<?= $this->escape($acknowledgement->getAuthor()) ?>
@ -49,6 +50,9 @@ $acknowledgement = $object->acknowledgement;
<p><?= nl2br($this->createTicketLinks($this->escape($acknowledgement->getComment())), false) ?></p>
</dd>
</dl>
<?php else: ?>
<?= $removeAckForm ?>
<?php endif ?>
</td>
</tr>
<?php else: ?>