Quellcode durchsuchen

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 vor 10 Jahren
Ursprung
Commit
8f523ec867
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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())