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.
This commit is contained in:
ntldr0
2021-06-12 13:23:53 -07:00
committed by GitHub
parent 561563b48c
commit f6906d0f18

View File

@@ -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")
{