Fixing extras removal refs #23921

This commit is contained in:
Luca Frosini 2022-10-03 17:17:17 +02:00
parent fc80d7912d
commit 099aefc4f5
1 changed files with 3 additions and 1 deletions

View File

@ -992,7 +992,9 @@ public class CKANPackage extends CKAN implements Moderated {
((ObjectNode) jsonNode).replace(RESOURCES_KEY, resourcesToBeSend); ((ObjectNode) jsonNode).replace(RESOURCES_KEY, resourcesToBeSend);
} }
addItemURLViaResolver(jsonNode); if(jsonNode.has(EXTRAS_KEY)) {
addItemURLViaResolver(jsonNode);
}
sendPostRequest(ITEM_PATCH, getAsString(jsonNode)); sendPostRequest(ITEM_PATCH, getAsString(jsonNode));