quick-actions.phtml: Set explicit ids instead of overriding the name..

..to avoid duplicate ids

fixes #4711
This commit is contained in:
Johannes Meyer 2022-03-24 09:38:36 +01:00
parent f1dc03fd85
commit 6802abc2c7
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<li>
<?php
$removeAckForm = clone $removeAckForm;
$removeAckForm->setName('quickAction_' . $removeAckForm->getName()); // Avoids id duplication
$removeAckForm->setAttrib('id', 'quickAction_' . $removeAckForm->getName()); // Avoids id duplication
$removeAckForm->setLabelEnabled(true);
echo $removeAckForm;
?>
@ -43,7 +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 ?>
<?php ($checkNowForm = clone $checkNowForm)->setAttrib('id', 'quickAction_' . $checkNowForm->getName()); // Avoids id duplication ?>
<li><?= $checkNowForm ?></li>
<?php endif ?>
<?php if ($this->hasPermission('monitoring/command/comment/add')): ?>