summaryrefslogtreecommitdiffhomepage
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ffluci/cbi.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ffluci/cbi.lua b/core/src/ffluci/cbi.lua
index 435977a172..f09d48ad7a 100644
--- a/core/src/ffluci/cbi.lua
+++ b/core/src/ffluci/cbi.lua
@@ -178,6 +178,11 @@ function Map.del(self, section, option)
self.ucidata[section][option] = nil
else
self.ucidata[section] = nil
+ for i, k in ipairs(self.ucidata[".order"]) do
+ if section == k then
+ table.remove(self.ucidata[".order"], i)
+ end
+ end
end
end
return stat