Browse Source

Always use the repository method to update the changed entity.

pull/6683/head
liangshiwei 5 years ago
parent
commit
a9f12f873e
  1. 3
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

3
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

@ -114,7 +114,10 @@ namespace Volo.Abp.Identity
foreach (var child in children)
{
child.Code = OrganizationUnit.AppendCode(organizationUnit.Code, OrganizationUnit.GetRelativeCode(child.Code, oldCode));
await OrganizationUnitRepository.UpdateAsync(child);
}
await OrganizationUnitRepository.UpdateAsync(organizationUnit);
}
public virtual async Task<string> GetCodeOrDefaultAsync(Guid id)

Loading…
Cancel
Save