Merge pull request #3059 from eliandoran/bugfix/relation_map_crash

Fix relation map crash on missing inverse pair (fixes #3055)
This commit is contained in:
zadam 2022-08-14 14:50:52 +02:00 committed by GitHub
commit 3bd2732cee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,6 +181,7 @@ function getRelationMap(req) {
if (def.inverseRelation) {
resp.inverseRelations[relationDefinition.getDefinedName()] = def.inverseRelation;
resp.inverseRelations[def.inverseRelation] = relationDefinition.getDefinedName();
}
}
}