libs/web: remove a stray non breaking space in DummyValue template
[project/luci.git] / libs / web / luasrc / view / cbi / value.htm
index 84daafd..d94863e 100644 (file)
@@ -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 -%>