From 9b34c89bc83a6790a4131d379ebf5e472b5f2264 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 12 Nov 2023 18:01:39 +0200 Subject: [PATCH] Fixed: Enforce validation warnings when testing providers (cherry picked from commit c3b4126d0c4f449a41e2cf7ea438b20e25370995) --- src/Prowlarr.Api.V1/ProviderControllerBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Prowlarr.Api.V1/ProviderControllerBase.cs b/src/Prowlarr.Api.V1/ProviderControllerBase.cs index 40bbe205f..809697a06 100644 --- a/src/Prowlarr.Api.V1/ProviderControllerBase.cs +++ b/src/Prowlarr.Api.V1/ProviderControllerBase.cs @@ -73,7 +73,7 @@ namespace Prowlarr.Api.V1 if (providerDefinition.Enable) { - Test(providerDefinition, false); + Test(providerDefinition, !forceSave); } providerDefinition = _providerFactory.Create(providerDefinition); @@ -91,7 +91,7 @@ namespace Prowlarr.Api.V1 // Only test existing definitions if it is enabled and forceSave isn't set. if (providerDefinition.Enable && !forceSave) { - Test(providerDefinition, false); + Test(providerDefinition, true); } _providerFactory.Update(providerDefinition);