mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
quick-actions.phtml: Set explicit ids instead of overriding the name..
..to avoid duplicate ids fixes #4711
This commit is contained in:
parent
f1dc03fd85
commit
6802abc2c7
@ -4,7 +4,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<?php
|
<?php
|
||||||
$removeAckForm = clone $removeAckForm;
|
$removeAckForm = clone $removeAckForm;
|
||||||
$removeAckForm->setName('quickAction_' . $removeAckForm->getName()); // Avoids id duplication
|
$removeAckForm->setAttrib('id', 'quickAction_' . $removeAckForm->getName()); // Avoids id duplication
|
||||||
$removeAckForm->setLabelEnabled(true);
|
$removeAckForm->setLabelEnabled(true);
|
||||||
echo $removeAckForm;
|
echo $removeAckForm;
|
||||||
?>
|
?>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (isset($checkNowForm)): // Form is unset if the current user lacks the respective permission ?>
|
<?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>
|
<li><?= $checkNowForm ?></li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($this->hasPermission('monitoring/command/comment/add')): ?>
|
<?php if ($this->hasPermission('monitoring/command/comment/add')): ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user