mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-25 18:06:21 +01: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:
parent
561563b48c
commit
f6906d0f18
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ protected Dictionary<string, object> GetBaseTemplateVariables()
|
|||
}
|
||||
else if (setting.Type == "checkbox")
|
||||
{
|
||||
variables[name] = ((bool)value) ? ".True" : ".False";
|
||||
variables[name] = ((bool)value) ? ".True" : null;
|
||||
}
|
||||
else if (setting.Type == "select")
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue