From 318d59bb9982c56a8a121f5be7067bd328203282 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 19 Nov 2023 21:02:28 -0800 Subject: [PATCH] Fixed force saving provider triggering testing (cherry picked from commit 65cb1ccafd54479fa3fca1f1eaa4b96222b0176b) --- src/Radarr.Api.V3/ProviderControllerBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Radarr.Api.V3/ProviderControllerBase.cs b/src/Radarr.Api.V3/ProviderControllerBase.cs index 78861c0a0..f432a8274 100644 --- a/src/Radarr.Api.V3/ProviderControllerBase.cs +++ b/src/Radarr.Api.V3/ProviderControllerBase.cs @@ -94,8 +94,8 @@ namespace Radarr.Api.V3 var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) || STJson.ToJson(existingDefinition.Settings) != STJson.ToJson(providerDefinition.Settings); - // Only test existing definitions if it is enabled and forceSave isn't set or the definition has changed. - if (providerDefinition.Enable && (!forceSave || hasDefinitionChanged)) + // Only test existing definitions if it is enabled and forceSave isn't set and the definition has changed. + if (providerDefinition.Enable && !forceSave && hasDefinitionChanged) { Test(providerDefinition, true); }