Skip to content

Commit

Permalink
luci-compat: CBI skip fields that do not satisfy depends
Browse files Browse the repository at this point in the history
If depends is not satisfied, the fvalue will be nil.

Signed-off-by: Liangbin Lian <[email protected]>
  • Loading branch information
jjm2473 committed Dec 10, 2024
1 parent 679d3b8 commit 3ac5741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-compat/luasrc/cbi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ function AbstractValue.parse(self, section, novld)
--luci.util.append(self.map.events, self.events)
end
end
else -- Unset the UCI or error
elseif fvalue ~= nil then -- Unset the UCI or error
if self.rmempty or self.optional then
if not self.alias or
not self.section.aliased or
Expand Down

0 comments on commit 3ac5741

Please sign in to comment.