Fixed patch method
This commit is contained in:
parent
ab0892eaf3
commit
7a434f999a
|
@ -654,11 +654,12 @@ public class CKANPackage extends CKAN {
|
||||||
@Override
|
@Override
|
||||||
public String patch(String json) {
|
public String patch(String json) {
|
||||||
try {
|
try {
|
||||||
JsonNode jsonNode = checkBaseInformation(json);
|
JsonNode jsonNode = checkBaseInformation(json, true);
|
||||||
|
|
||||||
read();
|
read();
|
||||||
|
|
||||||
this.itemID = result.get(ID_KEY).asText();
|
this.itemID = result.get(ID_KEY).asText();
|
||||||
|
((ObjectNode)jsonNode).put(ID_KEY, this.itemID);
|
||||||
|
|
||||||
Map<String,CKANResource> originalResources = new HashMap<>();
|
Map<String,CKANResource> originalResources = new HashMap<>();
|
||||||
ArrayNode originalResourcesarrayNode = (ArrayNode) result.get(RESOURCES_KEY);
|
ArrayNode originalResourcesarrayNode = (ArrayNode) result.get(RESOURCES_KEY);
|
||||||
|
|
Loading…
Reference in New Issue