Browse Source

Merge pull request #6683 from abpframework/liangshiwei/identity-patch-1

Always use the repository method to update the changed entity.
pull/6684/head
maliming 5 years ago
committed by GitHub
parent
commit
d84392d4fe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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