fixes
This commit is contained in:
parent
252d712d2a
commit
d8959d4180
|
@ -158,7 +158,6 @@ public class DescriptionWorkflowController {
|
||||||
query = query.tenantIds(this.tenantScope.getTenant());
|
query = query.tenantIds(this.tenantScope.getTenant());
|
||||||
|
|
||||||
DescriptionWorkflow model = this.builderFactory.builder(DescriptionWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
|
DescriptionWorkflow model = this.builderFactory.builder(DescriptionWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
|
||||||
if (model == null) throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{DescriptionWorkflow.class.getSimpleName()}, LocaleContextHolder.getLocale()));
|
|
||||||
|
|
||||||
this.auditService.track(AuditableAction.DescriptionWorkflow_Lookup, "fieldSet", fieldSet);
|
this.auditService.track(AuditableAction.DescriptionWorkflow_Lookup, "fieldSet", fieldSet);
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ public class PlanWorkflowController {
|
||||||
public PlanWorkflow GetByCurrentTenant(
|
public PlanWorkflow GetByCurrentTenant(
|
||||||
@Parameter(name = "fieldSet", description = SwaggerHelpers.Commons.fieldset_description, required = true) FieldSet fieldSet,
|
@Parameter(name = "fieldSet", description = SwaggerHelpers.Commons.fieldset_description, required = true) FieldSet fieldSet,
|
||||||
Locale locale
|
Locale locale
|
||||||
) throws MyApplicationException, MyForbiddenException, MyNotFoundException, InvalidApplicationException {
|
) throws MyApplicationException, MyForbiddenException, InvalidApplicationException {
|
||||||
logger.debug(new MapLogEntry("retrieving" + PlanWorkflow.class.getSimpleName()).And("fields", fieldSet));
|
logger.debug(new MapLogEntry("retrieving" + PlanWorkflow.class.getSimpleName()).And("fields", fieldSet));
|
||||||
|
|
||||||
this.censorFactory.censor(PlanWorkflowCensor.class).censor(fieldSet, null);
|
this.censorFactory.censor(PlanWorkflowCensor.class).censor(fieldSet, null);
|
||||||
|
@ -172,8 +172,6 @@ public class PlanWorkflowController {
|
||||||
query = query.tenantIds(this.tenantScope.getTenant());
|
query = query.tenantIds(this.tenantScope.getTenant());
|
||||||
|
|
||||||
PlanWorkflow model = this.builderFactory.builder(PlanWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
|
PlanWorkflow model = this.builderFactory.builder(PlanWorkflowBuilder.class).build(fieldSet, query.firstAs(fieldSet));
|
||||||
if (model == null)
|
|
||||||
throw new MyNotFoundException(this.messageSource.getMessage("General_ItemNotFound", new Object[]{PlanWorkflow.class.getSimpleName()}, LocaleContextHolder.getLocale()));
|
|
||||||
|
|
||||||
this.auditService.track(AuditableAction.PlanWorkflow_Lookup, "fields", fieldSet);
|
this.auditService.track(AuditableAction.PlanWorkflow_Lookup, "fields", fieldSet);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue