Skip to content

Commit

Permalink
hasChildren value is determined based on children, not parents!
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Aug 13, 2024
1 parent cb90669 commit e464a12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static V1Term mapTerm(JsonElement json, String lang) {
term.isDefiningOntology = Boolean.parseBoolean(JsonHelper.getString(localizedJson, IS_DEFINING_ONTOLOGY.getText()));

term.hasChildren = Boolean.parseBoolean(JsonHelper.getString(localizedJson, HAS_DIRECT_CHILDREN.getText()))
|| Boolean.parseBoolean(JsonHelper.getString(localizedJson, HAS_HIERARCHICAL_PARENTS.getText()));
|| Boolean.parseBoolean(JsonHelper.getString(localizedJson, HAS_HIERARCHICAL_CHILDREN.getText()));

term.isRoot = !(
JsonHelper.getBoolean(localizedJson, HAS_DIRECT_PARENTS.getText()) ||
Expand Down

0 comments on commit e464a12

Please sign in to comment.