Fixed Showing Orders of users of same company

This commit is contained in:
Frank Schubert
2022-04-27 16:40:47 +02:00
parent 864aa03acc
commit d7192b0378
11 changed files with 422 additions and 52 deletions

View File

@@ -35,7 +35,18 @@
<select class="select2 form-control " name="network_id" id="network_id">
<option></option>
<?php foreach($networks as $network): ?>
<option value="<?=$network->id?>" <?=($building->network_id == $network->id) ? "selected='selected'" : ""?>><?=($network->name)?></option>
<option value="<?=$network->id?>" <?php
if($building):
if($building->network_id == $network->id):
echo "selected='selected'";
endif;
else:
if($request_network_id == $network->id):
echo "selected='selected'";
endif;
endif;
?>><?=($network->name)?></option>
endif;
<?php endforeach; ?>
</select>
</div>