Skip to content

Commit e002fb2

Browse files
authored
[27193] don't set type for new contact if already exists (#848)
1 parent 8f47bb3 commit e002fb2

1 file changed

Lines changed: 2 additions & 24 deletions

File tree

bundles/ch.elexis.core.ui/src/ch/elexis/core/ui/dialogs/KontaktErfassenDialog.java

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -359,34 +359,12 @@ private void createKontakt() {
359359
qbe.add("Bezeichnung2", "=", ret[1]); //$NON-NLS-1$ //$NON-NLS-2$
360360
List<Kontakt> list = qbe.execute();
361361
if ((list != null) && (!list.isEmpty())) {
362-
Kontakt k = list.get(0);
363-
if (bOrganisation.getSelection() && k.istOrganisation()) {
364-
if (bLabor.getSelection()) {
365-
k.set("istOrganisation", "1"); //$NON-NLS-1$ //$NON-NLS-2$
366-
}
367-
if (MessageDialog.openConfirm(getShell(),
368-
Messages.KontaktErfassenDialog_organisationExistiert_title, // $NON-NLS-1$
369-
Messages.KontaktErfassenDialog_organisationExistiert_msg) == false) { // $NON-NLS-1$
370-
super.okPressed();
371-
return;
372-
}
373-
}
374-
if (k.istPerson()) {
375-
if (bAnwender.getSelection()) {
376-
k.set("istAnwender", "1"); //$NON-NLS-1$ //$NON-NLS-2$
377-
}
378-
if (bMandant.getSelection()) {
379-
k.set("istMandant", "1"); //$NON-NLS-1$ //$NON-NLS-2$
380-
}
381-
if (bPatient.getSelection()) {
382-
k.set("istPatient", "1"); //$NON-NLS-1$ //$NON-NLS-2$
383-
}
384-
if (MessageDialog.openConfirm(getShell(), Messages.KontaktErfassenDialog_personExisitiert_title, // $NON-NLS-1$
362+
if (MessageDialog.openConfirm(getShell(),
363+
Messages.KontaktErfassenDialog_personExisitiert_title, // $NON-NLS-1$
385364
Messages.KontaktErfassenDialog_personExisitiert_msg) == false) { // $NON-NLS-1$
386365
super.okPressed();
387366
return;
388367
}
389-
}
390368
}
391369

392370
/**

0 commit comments

Comments
 (0)