Skip to content

Commit

Permalink
Fix wrong history level check for entity links
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers committed Dec 10, 2024
1 parent 41d8abd commit c173d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ protected String getCaseDefinitionId(IdentityLinkEntity identityLink) {
@Override
public boolean isHistoryEnabledForEntityLink(EntityLinkEntity entityLink) {
String caseDefinitionId = getCaseDefinitionId(entityLink);
return isHistoryLevelAtLeast(HistoryLevel.AUDIT, caseDefinitionId);
return isHistoryEnabled(caseDefinitionId);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ protected String getProcessDefinitionId(IdentityLinkEntity identityLink) {
@Override
public boolean isHistoryEnabledForEntityLink(EntityLinkEntity entityLink) {
String processDefinitionId = getProcessDefinitionId(entityLink);
return isHistoryLevelAtLeast(HistoryLevel.AUDIT, processDefinitionId);
return isHistoryEnabled(processDefinitionId);
}

@Override
Expand Down

0 comments on commit c173d1a

Please sign in to comment.