From c162c363ce7323a24b8cb5604e96be0a64181e86 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Thu, 2 Oct 2014 16:16:39 +0200 Subject: [PATCH] =?UTF-8?q?Opravena=20chyba=20v=20zakl=C3=A1d=C3=A1n=C3=AD?= =?UTF-8?q?=20po=C5=BEadavk=C5=AF-=20pokud=20se=20zakl=C3=A1dal=20po=C5=BE?= =?UTF-8?q?adavek,=20kter=C3=BD=20by=20p=C5=99ekro=C4=8Dil=20limit=20a=20n?= =?UTF-8?q?=C3=A1sledn=C4=9B=20se=20upravila=20=C4=8D=C3=A1stka,=20aby=20?= =?UTF-8?q?=C5=A1el=20ulo=C5=BEit,=20do=C5=A1lo=20k=20rozjet=C3=AD=20po?= =?UTF-8?q?=C5=99ad=C3=AD=20schvalovatel=C5=AF.=20refs=20#137?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/requirement/RequirementBaseServiceImpl.java | 4 ++-- src/main/webapp/app/info.zul | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/info/bukova/isspst/services/requirement/RequirementBaseServiceImpl.java b/src/main/java/info/bukova/isspst/services/requirement/RequirementBaseServiceImpl.java index 77b8891a..b3adda62 100644 --- a/src/main/java/info/bukova/isspst/services/requirement/RequirementBaseServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/requirement/RequirementBaseServiceImpl.java @@ -56,14 +56,14 @@ public abstract class RequirementBaseServiceImpl exte } entity.setWorkgroup(reqWorkgroup); - this.addWorkflow(entity); - + checkEnable(); if (!canAdd(entity)) { throw new AddRequirementException(); } + this.addWorkflow(entity); entity.setNumser(this.getNumberSerie()); super.add(entity); diff --git a/src/main/webapp/app/info.zul b/src/main/webapp/app/info.zul index 8d5bb0bb..a1b78138 100644 --- a/src/main/webapp/app/info.zul +++ b/src/main/webapp/app/info.zul @@ -40,7 +40,7 @@ - +