From dc93bf1fcc3f64a0ab653c7c4904fe739c9e25b6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:29:05 +0000 Subject: libs/cbi: properly handle .default for dummy values --- libs/cbi/luasrc/view/cbi/dvalue.htm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/cbi') 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%> -- cgit v1.2.3