From 1a52df6bdb14c27a62dbf2df96cdcd8f7e67df45 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 14 Nov 2018 10:05:02 +0100 Subject: [PATCH] luci-base: allow optional default value for file browser With this change we could set optional value for the file browser. Signed-off-by: Florian Eckert --- modules/luci-base/luasrc/view/cbi/browser.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/view/cbi/browser.htm b/modules/luci-base/luasrc/view/cbi/browser.htm index 2abc975e8..362c40bec 100644 --- a/modules/luci-base/luasrc/view/cbi/browser.htm +++ b/modules/luci-base/luasrc/view/cbi/browser.htm @@ -1,4 +1,4 @@ -<% local v = self:cfgvalue(section) -%> +<% local v = self:cfgvalue(section) or self.default -%> <%+cbi/valueheader%> />