luci-mod-network: fix reading back rpfilter configuration value
authorJo-Philipp Wich <jo@mein.io>
Fri, 7 Jan 2022 18:19:11 +0000 (19:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 7 Jan 2022 18:20:27 +0000 (19:20 +0100)
Fixes: #5635
Fixes: faad7464a8 ("luci-mod-network: add support for network.device sections")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js

index cb453a3085302434bdfa92b4eee5b790f9a96a51..11d2162d1116480c16a76af5c38dfe3f45d720ee 100644 (file)
@@ -627,8 +627,8 @@ return baseclass.extend({
                o.value('', _('disabled'));
                o.value('loose', _('Loose filtering'));
                o.value('strict', _('Strict filtering'));
-               o.cfgvalue = function(section_id) {
-                       var val = form.ListValue.prototype.cfgvalue.apply(this, [section_id]);
+               o.cfgvalue = function(/* ... */) {
+                       var val = form.ListValue.prototype.cfgvalue.apply(this, arguments);
 
                        switch (val || '') {
                        case 'loose':