Skip to content

Commit

Permalink
fix for support feedback check
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwinship committed Jan 29, 2025
1 parent f6a1ba9 commit 9f8a9e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -47,7 +47,8 @@ public Response submitFeedback(@Context ContainerRequestContext crc, String json
}

JsonNumber jsonNumber = jsonObject.containsKey("targetId") ? jsonObject.getJsonNumber("targetId") : null;
String idtf = jsonObject.containsKey("identifier") ? jsonObject.getString("identifier") : null;
// idtf will hold the "targetId" or the "identifier". If neither is set then this is a general feedback to support
String idtf = jsonNumber != null ? jsonNumber.toString() : jsonObject.containsKey("identifier") ? jsonObject.getString("identifier") : null;
DvObject feedbackTarget = null;

if (jsonNumber != null) {

0 comments on commit 9f8a9e1

Please sign in to comment.