浏览代码

If the identifierPattern.exactMatch-CASE is used, the map has 2 entries (ID, content).
Now the ID is set to a lately created object.
content is unused.

Daniel Knorr 10 年之前
父节点
当前提交
8f523ec867
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libs/XNAT/Core/ctkXnatSession.cpp

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

@@ -573,7 +573,7 @@ void ctkXnatSession::save(ctkXnatObject* object)
   }
 
   const QList<QVariantMap>& maps = result->results();
-  if (maps.size() == 1 && maps[0].size() == 1)
+  if (maps.size() == 1 && maps[0].size() == 2)
   {
     QVariant id = maps[0][ctkXnatObject::ID];
     if (!id.isNull())