Fixing feature
This commit is contained in:
parent
0743445abe
commit
1ef0537f0e
|
@ -230,6 +230,7 @@ public class CKANPackage extends CKAN {
|
|||
// owner organization must be specified if the token belongs to a VRE
|
||||
String organizationFromContext = getOrganizationName();
|
||||
ckanOrganization = checkGotOrganization(organizationFromContext);
|
||||
objectNode.put(OWNER_ORG_KEY, organizationFromContext);
|
||||
}
|
||||
|
||||
return ckanOrganization;
|
||||
|
|
|
@ -235,7 +235,7 @@ public class CKANPackageTest extends ContextTest {
|
|||
itemObjectNode.put(PRIVATE_KEY, false);
|
||||
itemObjectNode.put(NOTES_KEY, "A research of Luca Frosini");
|
||||
itemObjectNode.put(URL_KEY, "http://www.d4science.org");
|
||||
itemObjectNode.put(CKANPackage.OWNER_ORG_KEY, "nextnext");
|
||||
// itemObjectNode.put(CKANPackage.OWNER_ORG_KEY, "devvre");
|
||||
|
||||
ArrayNode tagArrayNode = itemObjectNode.putArray(CKANPackage.TAGS_KEY);
|
||||
ObjectNode tagNode = mapper.createObjectNode();
|
||||
|
|
Loading…
Reference in New Issue