Browse Source

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 years ago
parent
commit
8f523ec867
1 changed files with 1 additions and 1 deletions
  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())