Converted password change form to CBI model
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index 8816b11..3b5a7c1 100644 (file)
@@ -653,7 +653,7 @@ function AbstractValue.parse(self, section)
        local cvalue = self:cfgvalue(section)
 
        if fvalue and fvalue ~= "" then -- If we have a form value, write it to UCI
-               fvalue = self:transform(self:validate(fvalue))
+               fvalue = self:transform(self:validate(fvalue, section))
                if not fvalue then
                        self.tag_invalid[section] = true
                end