This commit is contained in:
Olof hagsand 2018-02-25 20:09:11 +01:00
parent e9b61d4ed7
commit 6a22524d38
2 changed files with 7 additions and 1 deletions

View file

@ -21,7 +21,7 @@ enables saved files to be used as datastore without any editing. Thanks Matt.
* Added cli_show_version()
### Corrected Bugs
* Fix issue: https://github.com/clicon/clixon/issues/15 Replace whole config
## 3.5.0 (12 February 2018)

View file

@ -781,6 +781,12 @@ text_modify_top(cxobj *x0,
break;
}
}
/* Special case top-level replace */
if (op == OP_REPLACE || op == OP_DELETE){
x0c = NULL;
while ((x0c = xml_child_each(x0, x0c, CX_ELMNT)) != NULL)
xml_purge(x0c);
}
/* Loop through children of the modification tree */
x1c = NULL;
while ((x1c = xml_child_each(x1, x1c, CX_ELMNT)) != NULL) {