From ad3e1e5021d41d735158a3c747acf2ed74f30576 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 2 Apr 2014 14:43:23 +0000 Subject: [PATCH] Cast legacy options to string, in case someone passed in a number or something. Fixes error loading tracker configuration with queue other than all. --- etemplate/js/et2_core_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index 5a9b891f98..2eea8090cd 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -509,8 +509,8 @@ var et2_widget = ClassWithAttributes.extend( attrValue = mgr.expandName(attrValue); } - // Parse the legacy options - var splitted = et2_csvSplit(attrValue); + // Parse the legacy options (as a string, other types not allowed) + var splitted = et2_csvSplit(attrValue+""); for (var j = 0; j < splitted.length && j < _proto.legacyOptions.length; j++) {