From 714dcdd0d051416aa5a01481d194850578ba2f0e Mon Sep 17 00:00:00 2001 From: Tim Bernhard Date: Wed, 3 Jan 2024 10:14:23 +0100 Subject: [PATCH] Adjust _tags to new format --- .../java/edu/harvard/mcz/imagecapture/data/NahimaManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/mcz/imagecapture/data/NahimaManager.java b/src/main/java/edu/harvard/mcz/imagecapture/data/NahimaManager.java index 45c80aa..29f3a08 100644 --- a/src/main/java/edu/harvard/mcz/imagecapture/data/NahimaManager.java +++ b/src/main/java/edu/harvard/mcz/imagecapture/data/NahimaManager.java @@ -1329,7 +1329,9 @@ public JSONArray resolveWorkflowStatusTags(String workFlowStatus) throws IOExcep JSONObject tag = findTagWithName("Entwurf"); if (tag != null) { return new JSONArray() {{ - put(tag.getInt("_id")); + put(new JSONObject() {{ + put("_id", tag.getInt("_id")); + }}); }}; } else { throw new RuntimeException("Cound not find Entwurf tag");