Cast legacy options to string, in case someone passed in a number or something.

Fixes error loading tracker configuration with queue other than all.
This commit is contained in:
Nathan Gray 2014-04-02 14:43:23 +00:00
parent f456109f5b
commit ad3e1e5021

View File

@ -509,8 +509,8 @@ var et2_widget = ClassWithAttributes.extend(
attrValue = mgr.expandName(attrValue); attrValue = mgr.expandName(attrValue);
} }
// Parse the legacy options // Parse the legacy options (as a string, other types not allowed)
var splitted = et2_csvSplit(attrValue); var splitted = et2_csvSplit(attrValue+"");
for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++) for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++)
{ {