Set comment and downtime name in the detail views

This commit is contained in:
Eric Lippmann 2016-09-08 15:15:53 +02:00
parent 01bee4641d
commit 067de6b7f4
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,8 @@ if (empty($object->comments) && ! $addLink) {
$deleteButton->populate(
array(
'comment_id' => $comment->id,
'comment_is_service' => isset($comment->service_description)
'comment_is_service' => isset($comment->service_description),
'comment_name' => $comment->name
)
);
echo $deleteButton;

View File

@ -89,7 +89,8 @@ if (empty($object->comments) && ! $addLink) {
$deleteButton->populate(
array(
'downtime_id' => $downtime->id,
'downtime_is_service' => $object->getType() === $object::TYPE_SERVICE
'downtime_is_service' => $object->getType() === $object::TYPE_SERVICE,
'downtime_name' => $downtime->name
)
);
echo $deleteButton;