From: rkv Date: Mon, 14 Jan 2013 12:36:34 +0000 (+0000) Subject: Fix for mantis #0022060: Cannot Promote a document: update the popup menu after impor... X-Git-Tag: Root_Delivery2_2013_04_22~187 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8e274ac324f2c05bbfd58f4584f03f17a88883b;p=tools%2Fsiman.git Fix for mantis #0022060: Cannot Promote a document: update the popup menu after importing a new document or versioning a document. --- diff --git a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java index aa84a0b..3b2e9a3 100644 --- a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java @@ -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(