Skip to content
Snippets Groups Projects
Commit e5d62c38 authored by Mike McKay's avatar Mike McKay
Browse files

Hacky fix so that put REST calls can get the project item.

parent 92160b2a
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,12 @@ public class ProjectResource extends ItemResource {
if (project == null || Permissions.canEdit(user, project)) {
XFTItem item = loadItem("xnat:projectData", true);
//Hacky fix. Something changed so that loadItem no longer produces null when handlePut expects it to.
// This fix nulls the item to allow the project item to be stored in the item object.
if(item!=null && item.toString().equals("<XFTItem name=\"xnat:projectData\"/>\r\n")){
item=null;
}
if (item == null) {
String xsiType = getQueryVariable("xsiType");
if (xsiType != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment