mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
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:
@@ -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")
|
||||
{
|
||||
|
Reference in New Issue
Block a user