luci-0.9: merge r5861-r5863
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index b280944ceec92a6e8d4e636c944192bd38aa6f48..2d70f0b7a93f9981a77fc5bdf14bbe57d15272ef 100644 (file)
@@ -174,7 +174,7 @@ local function _uvl_validate_section(node, name)
        local function tag_section(e)
                local s = { }
                for _, c in ipairs(e.childs or { e }) do
-                       if c.childs and not c:is(luci.uvl.errors.ERR_DEPENDENCY) then
+                       if c.childs and not c:is('DEPENDENCY') then
                                table.insert( s, c.childs[1]:string() )
                        else
                                table.insert( s, c:string() )