mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Fixed: Enforce validation warnings when testing providers
(cherry picked from commit c3b4126d0c4f449a41e2cf7ea438b20e25370995)
This commit is contained in:
parent
8a1a945e5f
commit
4866c3ed12
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public ActionResult<TProviderResource> CreateProvider([FromBody] TProviderResour
|
|||
|
||||
if (providerDefinition.Enable)
|
||||
{
|
||||
Test(providerDefinition, false);
|
||||
Test(providerDefinition, !forceSave);
|
||||
}
|
||||
|
||||
providerDefinition = _providerFactory.Create(providerDefinition);
|
||||
|
@ -92,7 +92,7 @@ public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResour
|
|||
// 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);
|
||||
|
|
Loading…
Reference in a new issue