From: Jo-Philipp Wich Date: Sun, 7 Jul 2019 19:26:24 +0000 (+0200) Subject: luci-base: mvalue.htm: fix reading back multi value options X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f4c87f4dc4d5c91ea7413e451949b7c6d44b66ca;p=oweals%2Fluci.git luci-base: mvalue.htm: fix reading back multi value options Fixes: 2a229e50c ("luci-base: fix cbi mvalue templates") Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/view/cbi/mvalue.htm b/modules/luci-base/luasrc/view/cbi/mvalue.htm index d1fb80367..97e40abfa 100644 --- a/modules/luci-base/luasrc/view/cbi/mvalue.htm +++ b/modules/luci-base/luasrc/view/cbi/mvalue.htm @@ -1,6 +1,14 @@ <%+cbi/valueheader%> +<% + local util = require "luci.util" + local values = {} + local value + for value in util.imatch(self:cfgvalue(section) or self.default) do + values[#values+1] = value + end +%>