config.change triggers should only run if the config is valid
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
parent
326f5bcaf6
commit
bbaaa41f8c
1 changed files with 1 additions and 1 deletions
2
uci.c
2
uci.c
|
@ -1144,8 +1144,8 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm
|
||||||
{
|
{
|
||||||
uci_commit(cursor, &p, false);
|
uci_commit(cursor, &p, false);
|
||||||
uci_unload(cursor, p);
|
uci_unload(cursor, p);
|
||||||
|
rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG]));
|
||||||
}
|
}
|
||||||
rpc_uci_trigger_event(ctx, blobmsg_get_string(tb[RPC_C_CONFIG]));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue