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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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