Respect persistent when acknowledging over API

refs #3467
This commit is contained in:
Eric Lippmann 2018-06-27 09:47:08 +02:00
parent c633c86db7
commit 74d1c78465
1 changed files with 2 additions and 1 deletions

View File

@ -180,7 +180,8 @@ class IcingaApiCommandRenderer implements IcingaCommandRendererInterface
'author' => $command->getAuthor(),
'comment' => $command->getComment(),
'sticky' => $command->getSticky(),
'notify' => $command->getNotify()
'notify' => $command->getNotify(),
'persistent' => $command->getPersistent()
);
if ($command->getExpireTime() !== null) {
$data['expiry'] = $command->getExpireTime();