Fixed patch method

migrating_to_smartgears_4
Luca Frosini 3 years ago
parent ab0892eaf3
commit 7a434f999a

@ -654,11 +654,12 @@ public class CKANPackage extends CKAN {
@Override
public String patch(String json) {
try {
JsonNode jsonNode = checkBaseInformation(json);
JsonNode jsonNode = checkBaseInformation(json, true);
read();
this.itemID = result.get(ID_KEY).asText();
((ObjectNode)jsonNode).put(ID_KEY, this.itemID);
Map<String,CKANResource> originalResources = new HashMap<>();
ArrayNode originalResourcesarrayNode = (ArrayNode) result.get(RESOURCES_KEY);

Loading…
Cancel
Save