diff --git a/www/form/inner.js b/www/form/inner.js index c98a9f830..f440dd49a 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -1734,7 +1734,8 @@ define([ }, getCursor: function () { return cursorGetter(); }, setValue: function (val) { - var toSort = (val || []).map(function (val) { + if (!Array.isArray(val)) { val = []; } + var toSort = val.map(function (val) { return invMap[val]; }); sortable.sort(toSort);