Skip to content

Commit

Permalink
Parse context value as Integer
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed Oct 2, 2024
1 parent 00dc8c6 commit b08fe14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private void addContextImages(final Dataset parent, final String lang) throws Tr
final long imageId = Long.parseLong(currentContext.get("SemanticConnection.EntityID"));
image.setImageId(imageId);
image.setImageSubtitle(currentContext.get("marbilder.DateinameMarbilder"));
image.setEntityOrder(currentContext.get("marbilder.EntityOrder"));
image.setEntityOrder(Integer.parseInt(currentContext.get("marbilder.EntityOrder")));
image.setSourceContext(ts.transl8(contextName, lang));
final long sourceRecordId = Long.parseLong(currentContext.get("SemanticConnection.ForeignKeyTarget"));
image.setSourceRecordId(sourceRecordId);
Expand Down

0 comments on commit b08fe14

Please sign in to comment.