From: rkv Date: Wed, 5 Dec 2012 19:02:11 +0000 (+0000) Subject: Fix for the bug: versioning of a document with uses relations => crash. X-Git-Tag: Root_Delivery1_2012_12_06~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=44350f28b33fbfbddffe0e6bb665792d82513452;p=tools%2Fsiman.git Fix for the bug: versioning of a document with uses relations => crash. --- diff --git a/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java index 020cee9..e3a4e66 100644 --- a/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/PublicationServiceImpl.java @@ -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); } }