Skip to content
Snippets Groups Projects
Commit c72aed99 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'ddmr_cfg_format_value_undefined_fix' into 'master'

ddmr_cfg.js: Added a type check that should fix an 'undefined' error when formatting option values

See merge request !365
parents d9a59f31 7ababf7e
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -288,7 +288,10 @@ function formatCfgMenuText(pItemTextMaxLen, pItemText, pVal)
if (valType === "boolean")
value = pVal ? "Yes" : "No";
else
value = pVal.toString();
{
if (typeof(pVal) !== "undefined")
value = pVal.toString();
}
return format(formatCfgMenuText.formatStr, pItemText.substr(0, pItemTextMaxLen), value);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment