summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/cbi.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-06-01 21:20:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-06-01 21:20:20 +0000
commitc660416989900ba648a5ff908b67b565eb66edcf (patch)
tree43df5c40df91d8a1e7b00b22255c90dfb00f0fec /libs/cbi/luasrc/cbi.lua
parente95d152b3d7dc0fcc48ffe039bf61570d5eac161 (diff)
* luci/core: cbi.lua: fix auto-i18n for values inside typed sections
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r--libs/cbi/luasrc/cbi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index c8c810c04b..ace35d951d 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -247,7 +247,7 @@ function AbstractSection.option(self, class, option, ...)
if instanceof(class, AbstractValue) then
local obj = class(self.map, option, ...)
- Node._i18n(obj, self.config, self.section, option, ...)
+ Node._i18n(obj, self.config, self.section or self.sectiontype, option, ...)
self:append(obj)
return obj