Skip to content

Commit fe76081

Browse files
author
Matti Maier
committed
unimported instrument field handling in kontaktdaten
1 parent af357ed commit fe76081

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BNote/src/presentation/modules/kontaktdatenview.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ function start() {
2727
$form->removeElement("address");
2828
$form->removeElement("status");
2929
$form->removeElement("is_conductor");
30+
if($form->getElement("instrument") == null) {
31+
$form->addElement("instrument", new Dropdown("instrument"));
32+
}
3033
$form->setForeign("instrument", "instrument", "id", "name", $contact["instrument"]);
3134

3235
$address = $this->getData()->getAddress($contact["address"]);

0 commit comments

Comments
 (0)