summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/view/cbi/dynlist.htm
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/view/cbi/dynlist.htm')
-rw-r--r--libs/web/luasrc/view/cbi/dynlist.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/dynlist.htm b/libs/web/luasrc/view/cbi/dynlist.htm
index 387299dec..5f57941b8 100644
--- a/libs/web/luasrc/view/cbi/dynlist.htm
+++ b/libs/web/luasrc/view/cbi/dynlist.htm
@@ -39,7 +39,7 @@ cbi_dynlist_init('<%=cbid%>');
<%- end -%>', '<%: -- custom -- %>');
<% end -%>
<% for i=1, #vals + 1 do -%>
- cbi_validate_field('<%=cbid%>.<%=i%>', <%=tostring(self.optional == true or i > #vals)%>, '<%=self.datatype%>');
+ cbi_validate_field('<%=cbid%>.<%=i%>', <%=tostring((self.optional or self.rmempty) == true or i > #vals)%>, '<%=self.datatype%>');
<%- end %>
<% end -%>
</script>