monitoring: Avoid duplicate ids for check now and remove ack forms

This commit is contained in:
Johannes Meyer 2022-02-04 17:21:41 +01:00
parent 7f0ddd931c
commit 4f501a89f5

View File

@ -4,6 +4,7 @@
<li>
<?php
$removeAckForm = clone $removeAckForm;
$removeAckForm->setName('quickAction_' . $removeAckForm->getName()); // Avoids id duplication
$removeAckForm->setLabelEnabled(true);
echo $removeAckForm;
?>
@ -42,6 +43,7 @@
</li>
<?php endif ?>
<?php if (isset($checkNowForm)): // Form is unset if the current user lacks the respective permission ?>
<?php ($checkNowForm = clone $checkNowForm)->setName('quickAction_' . $checkNowForm->getName()); // Avoids id duplication ?>
<li><?= $checkNowForm ?></li>
<?php endif ?>
<?php if ($this->hasPermission('monitoring/command/comment/add')): ?>