Skip to content

Commit

Permalink
Unhide imports from Choices when using multiedit as multiedit does not
Browse files Browse the repository at this point in the history
shot the Choices (Fixes Icinga#1203)
  • Loading branch information
arjanoosting committed Feb 8, 2024
1 parent 9940302 commit 4867df7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/forms/IcingaMultiEditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ protected function makeVariants(ZfElement $element)
$checksum = sha1($json) . '_' . sha1(json_encode($objects));

$v = clone($element);
if ($key == "imports") {
$v->setAttrib('hideOptions', []);
}
$v->setName($key . '_' . $checksum);
$v->setDescription($description . ' ' . $this->descriptionForObjects($objects));
$v->setLabel($label . $this->labelCount($objects));
Expand Down

0 comments on commit 4867df7

Please sign in to comment.