PrefFilterTree: fix obscure crash because of getLabel() not casting data to string

This commit is contained in:
Andrew Dolgov 2018-12-04 16:07:24 +03:00
parent f81df37c36
commit ed1bd992d7
1 changed files with 1 additions and 5 deletions

View File

@ -35,7 +35,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
},
getLabel: function(item) {
let label = item.name;
let label = String(item.name);
const feed = this.model.store.getValue(item, 'feed');
const inverse = this.model.store.getValue(item, 'inverse');
@ -46,10 +46,6 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
if (inverse)
label += " (" + __("Inverse") + ")";
/* if (item.param)
label = "<span class=\"labelFixedLength\">" + label +
"</span>" + item.param[0]; */
return label;
},
getIconClass: function (item, opened) {