소스 검색

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())