Skip to content

Commit

Permalink
Merge pull request #39 from indexdata/MODNCIP-68
Browse files Browse the repository at this point in the history
MODNCIP-68 Send field only if not null
  • Loading branch information
JanisSaldabols authored Sep 11, 2024
2 parents c1bfc5a + 9716aab commit 09add9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/folio/ncip/FolioRemoteServiceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ public JsonObject requestItem(RequestItemInitiationData initData) throws Excepti
servicePointId = ncipProperties.getProperty(agencyId + ".checkout.service.point.id");
}
request.put("pickupServicePointId", servicePointId);
request.put("itemLocationCode", locationCode);
if (locationCode != null) {
request.put("itemLocationCode", locationCode);
}

String requestUrl = baseUrl + Constants.REQUEST_URL;
String requestResponse = callApiPost(requestUrl, request);
Expand Down

0 comments on commit 09add9a

Please sign in to comment.