From: Jo-Philipp Wich Date: Sun, 1 Jun 2008 21:20:20 +0000 (+0000) Subject: * luci/core: cbi.lua: fix auto-i18n for values inside typed sections X-Git-Tag: 0.8.0~932 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c660416989900ba648a5ff908b67b565eb66edcf;p=oweals%2Fluci.git * luci/core: cbi.lua: fix auto-i18n for values inside typed sections --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index c8c810c04..ace35d951 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