Fix person-org relation info

This commit is contained in:
Eike Kettner 2020-12-05 22:44:19 +01:00
parent 2aed7ba142
commit 66bd4f53cb

View File

@ -335,10 +335,13 @@ personMatchesOrg model =
Comp.Dropdown.getSelected model.corrOrgModel
|> List.head
persOrg =
pers =
Comp.Dropdown.getSelected model.corrPersonModel
|> List.head
persOrg =
pers
|> Maybe.andThen (\idref -> Dict.get idref.id model.allPersons)
|> Maybe.andThen .organization
in
org == Nothing || org == persOrg
org == Nothing || pers == Nothing || org == persOrg