diff --git a/static/js/details.js b/static/js/details.js index 5a01d795..ae87a06f 100644 --- a/static/js/details.js +++ b/static/js/details.js @@ -11,7 +11,9 @@ $(function () { return {value: tag} } - var allTags = $("#update-tags-input").data("all-tags"); + // Use attr() instead of data() here, as data() converts attribute's string value + // to a JS object, but we need an unconverted string: + var allTags = $("#update-tags-input").attr("data-all-tags"); var options = allTags ? allTags.split(" ").map(toOption) : []; $("#update-tags-input").selectize({ create: true,