From 95d004fc5d7d2716794839abfbae0d218b95eaee Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Fri, 24 Jul 2020 10:27:07 +0200 Subject: luci-base: fix widgets CBIUserSelect appending list on load The user list was appended to the dropdown again each time the page is loaded. Signed-off-by: Helge Mader --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 7f724a17e..1de8a08bc 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -580,6 +580,8 @@ var CBIUserSelect = form.ListValue.extend({ load: function(section_id) { return getUsers().then(L.bind(function(users) { + delete this.keylist; + delete this.vallist; for (var i = 0; i < users.length; i++) { this.value(users[i]); } -- cgit v1.2.3