* luci/core: cbi.lua: fix auto-i18n for values inside typed sections

This commit is contained in:
Jo-Philipp Wich 2008-06-01 21:20:20 +00:00
parent e95d152b3d
commit c660416989

View 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