mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
monitoring: Avoid duplicate ids for check now and remove ack forms
This commit is contained in:
parent
7f0ddd931c
commit
4f501a89f5
@ -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')): ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user