From c660416989900ba648a5ff908b67b565eb66edcf Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 1 Jun 2008 21:20:20 +0000 Subject: [PATCH] * luci/core: cbi.lua: fix auto-i18n for values inside typed sections --- libs/cbi/luasrc/cbi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1