Salome HOME
Fix for the bug: versioning of a document with uses relations => crash.
authorrkv <rkv@opencascade.com>
Wed, 5 Dec 2012 19:02:11 +0000 (19:02 +0000)
committerrkv <rkv@opencascade.com>
Wed, 5 Dec 2012 19:02:11 +0000 (19:02 +0000)
Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java

index 020cee9407e0f88698aa04bbba5b2c6539f942fe..e3a4e668ae6468c2b42d5b783d98ee86275abcfd 100644 (file)
@@ -284,7 +284,7 @@ public class PublicationServiceImpl implements PublicationService {
                if (docuses != null) {
                        for (int i = 0; i < docuses.length; i++) {
                                Long index = Long.valueOf(docuses[i].trim());
-                               Publication used = getPublicationDAO().get(index);// RKV: getPublication(index, steps);
+                               Document used = getDocumentService().selectDocument(index);// RKV: getPublication(index, steps);
                                next.addDependency(used);
                        }
                }