general fixes

This commit is contained in:
Dennis Eichhorn 2024-04-19 02:08:37 +00:00
parent 2c3551854c
commit c448b5160a

View File

@ -105,7 +105,7 @@ echo $this->data['nav']->render(); ?>
<?php
$units = $this->data['units'] ?? [];
foreach ($units as $unit) : ?>
<option value="<?= $unit->id; ?>"<?= $contract->unit->id === $unit->id ? ' selected' : ''; ?>><?= $this->printHtml($unit->name); ?>
<option value="<?= $unit->id; ?>"<?= $contract->unit?->id === $unit->id ? ' selected' : ''; ?>><?= $this->printHtml($unit->name); ?>
<?php endforeach; ?>
</select>
</div>