浏览代码

Merge pull request #634 from AndreasFetzer/add-XNAT-resource-fails

Adding the xsiType=xnat:resource query parameter leads to an error when upload ing resources to XNAT
Jean-Christophe Fillion-Robin 9 年之前
父节点
当前提交
36843bf23b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/XNAT/Core/ctkXnatResource.cpp

+ 1 - 1
Libs/XNAT/Core/ctkXnatResource.cpp

@@ -173,7 +173,7 @@ void ctkXnatResource::downloadImpl(const QString& filename)
 void ctkXnatResource::saveImpl(bool /*overwrite*/)
 {
   ctkXnatSession::UrlParameters urlParams;
-  urlParams["xsiType"] = this->schemaType();
+  urlParams["xsi:type"] = this->schemaType();
 
   const QMap<QString, QString>& properties = this->properties();
   QMapIterator<QString, QString> itProperties(properties);