monitoring/downtime: add missing ticket hook

We used to have this when showing comments, but not for downtimes.
This commit is contained in:
Thomas Gelf 2014-06-20 12:37:09 +02:00
parent 596e7f6533
commit 5dfd4aedac
1 changed files with 7 additions and 2 deletions

View File

@ -31,8 +31,13 @@ foreach ($object->downtimes as $downtime) {
'removedowntime',
$deleteData
);
$text = $this->escape($downtime->comment);
// Ticket hook sample
$text = $this->tickets ? preg_replace_callback(
$this->tickets->getPattern(),
array($this->tickets, 'createLink'),
$this->escape($downtime->comment)
) : $this->escape($downtime->comment);
$list[] = sprintf(
'<tr><th>%s</th><td data-base-target="_self">%s %s: %s</td></tr>',