From e8e274ac324f2c05bbfd58f4584f03f17a88883b Mon Sep 17 00:00:00 2001 From: rkv Date: Mon, 14 Jan 2013 12:36:34 +0000 Subject: [PATCH] Fix for mantis #0022060: Cannot Promote a document: update the popup menu after importing a new document or versioning a document. --- .../Siman-Common/src/org/splat/service/StudyServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.39.2