summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:29:05 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:29:05 +0000
commitdc93bf1fcc3f64a0ab653c7c4904fe739c9e25b6 (patch)
tree17fe1f8e9c7b3369a7bb8f424224a1ab069f1983 /libs/cbi/luasrc/view
parent9d8ebba1df4a66aa2c870d3f8e9b71f1a60a23ca (diff)
libs/cbi: properly handle .default for dummy values
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r--libs/cbi/luasrc/view/cbi/dvalue.htm4
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%>
&#160;
-<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%>