* luci/core: cbi.lua: fix auto-i18n for values inside typed sections
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jun 2008 21:20:20 +0000 (21:20 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 1 Jun 2008 21:20:20 +0000 (21:20 +0000)
libs/cbi/luasrc/cbi.lua

index c8c810c04b2534f54a1ba22903b98897374a1864..ace35d951dc0473909f1e7dd4cba04dda86395fc 100644 (file)
@@ -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