diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:29:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:29:05 +0000 |
commit | dc93bf1fcc3f64a0ab653c7c4904fe739c9e25b6 (patch) | |
tree | 17fe1f8e9c7b3369a7bb8f424224a1ab069f1983 /libs/cbi/luasrc | |
parent | 9d8ebba1df4a66aa2c870d3f8e9b71f1a60a23ca (diff) |
libs/cbi: properly handle .default for dummy values
Diffstat (limited to 'libs/cbi/luasrc')
-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 819860a065..9745fff4cb 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%> |