fix: update entity reference in hasAffectingChanges method to use the correct entity

Closes #3388540

Merge request reports

Loading
Loading