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 @@ - +