diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-09-15 12:37:41 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-09-15 12:37:41 +0000 |
| commit | 32313ef75cb7074284128282c2ef1716ceb9ef86 (patch) | |
| tree | 7b5f1f12e9a53bdac9ad6de7825ec2108858f92d /templates/sidebar | |
| parent | 40e5c18af7b26482cb724a2d074a8fd46c33fc2d (diff) | |
use ID not name as input name, fixes #3011
Closes #3011
Merge request studip/studip!2128
Diffstat (limited to 'templates/sidebar')
| -rw-r--r-- | templates/sidebar/room-search-widget.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/sidebar/room-search-widget.php b/templates/sidebar/room-search-widget.php index ac679b4..e54e530 100644 --- a/templates/sidebar/room-search-widget.php +++ b/templates/sidebar/room-search-widget.php @@ -102,7 +102,7 @@ <select class="criteria-selector" title="<?= _('Bitte aus dieser Liste Kriterien für die Raumsuche auswählen.')?>"> <option value=""></option> - <? foreach ($criteria as $c): ?> + <? foreach ($criteria as $name => $c): ?> <? if (!$c['optional']) { continue; } ?> <option data-title="<?= htmlReady($c['title'])?>" value="<?= htmlReady($c['name'])?>" @@ -116,7 +116,7 @@ ) : '' ) ?>" - <?= in_array($c['name'], array_keys($selected_criteria)) + <?= in_array($name, array_keys($selected_criteria)) ? 'class="invisible"' : ''?>> <?= htmlReady($c['title']) ?> |
