From f829171d83e953a3affdac2f511428f1dc4bdfca Mon Sep 17 00:00:00 2001 From: vitaliyyuras Date: Mon, 28 Aug 2023 16:20:10 +0300 Subject: [PATCH] Added check to prevent status change if ProviderStatus is Pending --- OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs index e3ee9e0a67..64253108e8 100644 --- a/OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs +++ b/OutOfSchool/OutOfSchool.WebApi/Services/ProviderService.cs @@ -648,7 +648,8 @@ private void ChangeProviderStatusIfNeeded( statusChanged = false; licenseChanged = false; - if (!(checkProvider.FullTitle == providerDto.FullTitle + if (checkProvider.Status != ProviderStatus.Pending && + !(checkProvider.FullTitle == providerDto.FullTitle && checkProvider.EdrpouIpn == providerDto.EdrpouIpn)) { checkProvider.Status = ProviderStatus.Recheck;