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 cfe50c45677daea6895a9ee992fc0dbf482cc5c5..a125ccf6e0ced67ffc359b9f40093a35a403c321 100644 (file)
@@ -17,7 +17,7 @@ local v = self:valuelist(section)
 %>
 <%+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 %>