]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Fix for mantis #0022060: Cannot Promote a document: update the popup menu after impor...
authorrkv <rkv@opencascade.com>
Mon, 14 Jan 2013 12:36:34 +0000 (12:36 +0000)
committerrkv <rkv@opencascade.com>
Mon, 14 Jan 2013 12:36:34 +0000 (12:36 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java

index aa84a0b13249c6e3fe17aa4df3b6bb955126f512..3b2e9a386750698297deaad771ab37ad7d3f41b9 100644 (file)
@@ -842,7 +842,7 @@ public class StudyServiceImpl implements StudyService {
         */
        public ValidationCycle getValidationCycleOf(final Study aStudy,
                        final DocumentType type) {
-               if (aStudy.getValidationCycles() == null) {
+               if (aStudy.getValidationCycles() == null || aStudy.getValidationCycles().isEmpty()) {
                        setShortCuts(aStudy);
                }
                ValidationCycle result = aStudy.getValidationCycles().get(