Fixed: (Cardigann) fix checkbox configuration (#169)

In ApplyGoTemplateText(), boolean values are resolved by using IsNullOrWhiteSpace().  Since ".False" is neither null or whitespace, ".False" always resolves to true.
pull/211/head
ntldr0 3 years ago committed by GitHub
parent 561563b48c
commit f6906d0f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -237,7 +237,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
}
else if (setting.Type == "checkbox")
{
variables[name] = ((bool)value) ? ".True" : ".False";
variables[name] = ((bool)value) ? ".True" : null;
}
else if (setting.Type == "select")
{

Loading…
Cancel
Save