Fixed sorted networks in Order filter

This commit is contained in:
Frank Schubert
2021-12-01 09:58:03 +01:00
parent 3e46a872ce
commit 78e06db0ad

View File

@@ -7,7 +7,6 @@
}
}
ksort($sorted_networks);
$mynetworks = $sorted_networks;
?>
<?php include(realpath(dirname(__FILE__)."/../")."/header.php"); ?>
@@ -41,7 +40,7 @@
<div class="col-2">
<label class="form-label" for="filter_network_id">Netzgebiet</label>
<select name="filter[network_id]" id="filter_network_id" class="form-control">
<?php foreach($mynetworks as $fnet => $nid): ?>
<?php foreach($sorted_networks as $fnet => $nid): ?>
<option value="<?=$nid?>" <?=($filter['network_id'] == $nid) ? "selected='selected'" : ""?>><?=$fnet?></option>
<?php endforeach; ?>
</select>