libs/cbi: Fixed MultiValue select widget
authorSteven Barth <steven@midlink.org>
Mon, 14 Jul 2008 18:57:19 +0000 (18:57 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 14 Jul 2008 18:57:19 +0000 (18:57 +0000)
libs/cbi/luasrc/view/cbi/mvalue.htm

index cfe50c4..a125ccf 100644 (file)
@@ -17,7 +17,7 @@ local v = self:valuelist(section)
 %>
 <%+cbi/valueheader%>
 <% if self.widget == "select" then %>
 %>
 <%+cbi/valueheader%>
 <% if self.widget == "select" then %>
-                                                               <select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if self.size then %> size="<%=self.size%>"<% end %>>
+                                                               <select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>>
 <%for i, key in pairs(self.keylist) do %>
                                                                        <option<% if luci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option>
 <% end %>
 <%for i, key in pairs(self.keylist) do %>
                                                                        <option<% if luci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option>
 <% end %>