Salome HOME
Fixed: adding a knowledge element (but there is still a double addition), opening...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / PublicationServiceImpl.java
index 8f643874942b491f0040f77cabd633f5165858e5..7fb730ba70bb0d6210f438641b1b4fc7997c9138 100644 (file)
@@ -286,7 +286,7 @@ public class PublicationServiceImpl implements PublicationService {
                        throw new FileNotFoundException();
 
                if (state == ProgressState.inWORK || state == ProgressState.EXTERN) {
-                       Database.getSession().save(this); // Must be done before updating the study in order to fix this final (rid-based) hascode
+                       Database.getSession().save(aPublication); // Must be done before updating the study in order to fix this final (rid-based) hascode
                        aPublication.value().updateAs(state);
                } else {
                        DocumentType mytype = aPublication.value().getType();