luci-mod-network: wireless.js: fix parsing of wep key slot cfgvalue
authorJo-Philipp Wich <jo@mein.io>
Fri, 20 Sep 2019 07:36:23 +0000 (09:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 20 Sep 2019 07:36:23 +0000 (09:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index e5213ff139fc3e02db6e50685979d1eea39e14d5..8049c4a3a65df891d2ccc900c644abf1da492e41 100644 (file)
@@ -1265,7 +1265,7 @@ return L.view.extend({
 
                                o.cfgvalue = function(section_id) {
                                        var slot = +uci.get('wireless', section_id, 'key');
-                                       return (slot >= 1 && slot <= 4) ? slot : 1;
+                                       return String((slot >= 1 && slot <= 4) ? slot : 1);
                                };
 
                                o.write = function(section_id, value) {