summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--core/src/ffluci/cbi.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ffluci/cbi.lua b/core/src/ffluci/cbi.lua
index 5b38d1b50a..f653e457d2 100644
--- a/core/src/ffluci/cbi.lua
+++ b/core/src/ffluci/cbi.lua
@@ -147,6 +147,7 @@ function Map.add(self, sectiontype)
if name then
self.ucidata[name] = {}
self.ucidata[name][".type"] = sectiontype
+ self.ucidata[".order"] = self.ucidata[".order"] or {}
table.insert(self.ucidata[".order"], name)
end
return name
@@ -164,6 +165,7 @@ function Map.set(self, section, option, value)
self.ucidata[section] = {}
end
self.ucidata[section][".type"] = val
+ self.ucidata[".order"] = self.ucidata[".order"] or {}
table.insert(self.ucidata[".order"], section)
end
end