|
|
@ -68,8 +68,12 @@ public abstract class RequirementBaseServiceImpl<T extends RequirementBase> exte
|
|
|
|
|
|
|
|
|
|
|
|
super.add(entity);
|
|
|
|
super.add(entity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (canApprove(entity)) {
|
|
|
|
|
|
|
|
approve(entity);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
this.sendToApprovers(entity);
|
|
|
|
this.sendToApprovers(entity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void checkEnable() {
|
|
|
|
private void checkEnable() {
|
|
|
|
if (!settingsService.getSettings().isEnableRequirements()) {
|
|
|
|
if (!settingsService.getSettings().isEnableRequirements()) {
|
|
|
@ -220,12 +224,10 @@ public abstract class RequirementBaseServiceImpl<T extends RequirementBase> exte
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
e.setState(RequirementState.PARTIALLY);
|
|
|
|
e.setState(RequirementState.PARTIALLY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
entity.setState(e.getState());
|
|
|
|
|
|
|
|
entity.getAuthorization().add(auth);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
super.update(e);
|
|
|
|
super.update(e);
|
|
|
|
|
|
|
|
|
|
|
|
if (!autoApprove(entity)) {
|
|
|
|
if (!autoApprove(e)) {
|
|
|
|
this.sendToApprovers(e);
|
|
|
|
this.sendToApprovers(e);
|
|
|
|
|
|
|
|
|
|
|
|
SettingsData settings = settingsService.getSettings();
|
|
|
|
SettingsData settings = settingsService.getSettings();
|
|
|
|