diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-01 21:20:20 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-01 21:20:20 +0000 |
commit | c660416989900ba648a5ff908b67b565eb66edcf (patch) | |
tree | 43df5c40df91d8a1e7b00b22255c90dfb00f0fec | |
parent | e95d152b3d7dc0fcc48ffe039bf61570d5eac161 (diff) |
* luci/core: cbi.lua: fix auto-i18n for values inside typed sections
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 2 |
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 |