From 74d1c78465eb65db86a87d40eef05bccc5eadf18 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 27 Jun 2018 09:47:08 +0200 Subject: [PATCH] Respect persistent when acknowledging over API refs #3467 --- .../Monitoring/Command/Renderer/IcingaApiCommandRenderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Command/Renderer/IcingaApiCommandRenderer.php b/modules/monitoring/library/Monitoring/Command/Renderer/IcingaApiCommandRenderer.php index 0910beb88..81883618d 100644 --- a/modules/monitoring/library/Monitoring/Command/Renderer/IcingaApiCommandRenderer.php +++ b/modules/monitoring/library/Monitoring/Command/Renderer/IcingaApiCommandRenderer.php @@ -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();