* 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 c8c810c..ace35d9 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