1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 03:52:33 +02:00

Always validate settings when testing thingies

Fixed: Validation skipped when saving connections
This commit is contained in:
Mark McDowall 2016-03-18 15:42:19 -07:00
parent 1072c5247c
commit 6b1a4c4198

View File

@ -160,8 +160,10 @@ private Response GetTemplates()
private Response Test(TProviderResource providerResource)
{
var providerDefinition = GetDefinition(providerResource, true);
// Don't validate when getting the definition so we can validate afterwards (avoids validation being skipped because the provider is disabled)
var providerDefinition = GetDefinition(providerResource, true, false);
Validate(providerDefinition, true);
Test(providerDefinition, true);
return "{}";