summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/view/cbi/value.htm
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/view/cbi/value.htm')
-rw-r--r--libs/web/luasrc/view/cbi/value.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/value.htm b/libs/web/luasrc/view/cbi/value.htm
index 84daafd465..d94863e900 100644
--- a/libs/web/luasrc/view/cbi/value.htm
+++ b/libs/web/luasrc/view/cbi/value.htm
@@ -40,7 +40,7 @@ $Id$
<%- end -%>');
<%- end %>
<% if self.datatype then -%>
- cbi_validate_field('<%=cbid%>', <%=tostring(self.optional == true)%>, '<%=self.datatype%>');
+ cbi_validate_field('<%=cbid%>', <%=tostring((self.optional or self.rmempty) == true)%>, '<%=self.datatype%>');
<%- end %>
</script>
<% end -%>