* Added initial version of RPC info API
[project/luci.git] / module / admin-core / src / controller / admin / uci.lua
index 2d19db1..1a3ae12 100644 (file)
@@ -13,7 +13,7 @@ function action_apply()
                -- Collect files to be applied
                for i, line in ipairs(ffluci.util.split(changes)) do
                        local r = line:match("^-?([^.]+)")
-                       if r then
+                       if r and not ffluci.util.contains(apply, ffluci.config.uci_oncommit[r]) then
                                table.insert(apply, ffluci.config.uci_oncommit[r])
                        end
                end