From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:29:05 +0000 (+0000) Subject: libs/cbi: properly handle .default for dummy values X-Git-Tag: 0.10.0~986 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc93bf1fcc3f64a0ab653c7c4904fe739c9e25b6;p=oweals%2Fluci.git libs/cbi: properly handle .default for dummy values --- diff --git a/libs/cbi/luasrc/view/cbi/dvalue.htm b/libs/cbi/luasrc/view/cbi/dvalue.htm index 819860a06..9745fff4c 100644 --- a/libs/cbi/luasrc/view/cbi/dvalue.htm +++ b/libs/cbi/luasrc/view/cbi/dvalue.htm @@ -15,8 +15,8 @@ $Id$ <%+cbi/valueheader%> <% if self.href then %><% end -%> - <%=pcdata(self:cfgvalue(section))%> + <%=pcdata(self:cfgvalue(section) or self.default or "")%> <%- if self.href then %><%end%>   - +" /> <%+cbi/valuefooter%>