projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b08db70
)
* ffluci.cbi: Fixed a problem where an error message occured when the first UCI secti...
author
Steven Barth
<steven@midlink.org>
Tue, 22 Apr 2008 18:55:12 +0000
(18:55 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 22 Apr 2008 18:55:12 +0000
(18:55 +0000)
core/src/ffluci/cbi.lua
patch
|
blob
|
history
diff --git
a/core/src/ffluci/cbi.lua
b/core/src/ffluci/cbi.lua
index 5b38d1b50a6e742247b3a671aca28cf0b24d2f25..f653e457d2026ffccb3a8d4179f52af848bd3942 100644
(file)
--- 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