1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update luci-base

This commit is contained in:
Ycarus 2018-06-04 22:10:32 +02:00
parent 54f07a7e1e
commit 0a00c769a1
41 changed files with 885 additions and 3727 deletions

View file

@ -1226,13 +1226,14 @@ function TypedSection.parse(self, novld)
local stval = RESORT_PREFIX .. self.config .. "." .. self.sectiontype
local order = self.map:formvalue(stval)
if order and #order > 0 then
local sid
local num = 0
local sids, sid = { }, nil
for sid in util.imatch(order) do
self.map.uci:reorder(self.config, sid, num)
num = num + 1
sids[#sids+1] = sid
end
if #sids > 0 then
self.map.uci:reorder(self.config, sids)
self.changed = true
end
self.changed = (num > 0)
end
end