This commit is contained in:
Lucio Lelii 2018-12-18 17:25:04 +00:00
parent a6dceeec83
commit 66a2bf8d25
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@ public abstract class ItemContainer<I extends Item> {
if (item==null || invalidated) {
I toRet = (I)itemclient.get(itemId);
invalidated = false;
item = toRet;
return toRet;
}
else return item;

View File

@ -516,10 +516,10 @@ public class DefaultItemManager implements ItemManagerClient {
GXWebTargetAdapterRequest myManager = manager.path(parentId)
.path("create").path("FOLDER");
MultivaluedMap<String, Object> formData = new MultivaluedHashMap<String, Object>();
MultivaluedMap<String, String> formData = new MultivaluedHashMap<String, String>();
formData.add("name", name);
formData.add("description", description);
formData.add("hidden", hidden);
formData.add("hidden", Boolean.toString(hidden));
GXInboundResponse response = myManager.post(Entity.entity(formData, MediaType.APPLICATION_FORM_URLENCODED));