Skip to content

Commit

Permalink
#7434 - CR suggestion - fix internal flag default
Browse files Browse the repository at this point in the history
  • Loading branch information
BarnaBartha committed Jan 6, 2022
1 parent 93166b7 commit 211d074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -1335,12 +1335,12 @@ public CaseReferenceDto getReferenceByUuid(String uuid) {

@Override
public CaseDataDto saveCase(@Valid CaseDataDto dto) throws ValidationRuntimeException {
return saveCase(dto, true, true, false, false);
return saveCase(dto, true, true, true, false);
}

@Override
public CaseDataDto saveCase(@Valid CaseDataDto dto, Boolean systemSave) throws ValidationRuntimeException {
return saveCase(dto, true, true, false, systemSave);
return saveCase(dto, true, true, true, systemSave);
}

public void saveBulkCase(
Expand Down Expand Up @@ -3172,7 +3172,7 @@ private void mergeCase(CaseDataDto leadCaseData, CaseDataDto otherCaseData, bool
// 1.1 Case

copyDtoValues(leadCaseData, otherCaseData, cloning);
saveCase(leadCaseData, !cloning, true, false, false);
saveCase(leadCaseData, !cloning, true, true, false);

// 1.2 Person - Only merge when the persons have different UUIDs
if (!cloning && !DataHelper.equal(leadCaseData.getPerson().getUuid(), otherCaseData.getPerson().getUuid())) {
Expand Down
Expand Up @@ -77,7 +77,7 @@ public List<CaseDataDto> getByPersonUuids(List<String> uuids) {
@POST
@Path("/push")
public List<PushResult> postCases(@Valid List<CaseDataDto> dtos) {
return savePushedDto(dtos, dto -> FacadeProvider.getCaseFacade().saveCase(dto));
return savePushedDto(dtos, FacadeProvider.getCaseFacade()::saveCase);
}

@GET
Expand Down

0 comments on commit 211d074

Please sign in to comment.