diff options
Diffstat (limited to 'libs/cbi')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/dvalue.htm | 4 |
1 files changed, 2 insertions, 2 deletions
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 %><a href="<%=self.href%>"><% end -%> - <%=pcdata(self:cfgvalue(section))%> + <%=pcdata(self:cfgvalue(section) or self.default or "")%> <%- if self.href then %></a><%end%>   -<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section))%>" /> +<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" /> <%+cbi/valuefooter%> |