-
Problem report
-
Resolution: Won't fix
-
Trivial
-
None
-
4.0.37rc1, 5.0.19rc1, 5.4.9rc1, 6.0.0beta1
Problem description: If during the same host update a template is unlinked and its items are cleared and then the template is added back again, the items that belong to this template are re-created on the host (they have new ids). In this case the items loose all of their history records. It is expected that if templated is unlinked and cleared and the linked again during the same host update, the entries (items, triggers, graphs...) that correspond to this template stay unchanged.
Steps to reproduce:
- Open configuration of any host that has a linked template
- Open DB and check the ids of the items that are inherited by this host from the template
- Perform the unlink and clear action for this template on the host but don't update host configuration yet
- Link the template back to this host
- Update host configuration
- Check the ids of the items that are inherited by this host from the template
Result: the ids of items are changed, which means that the items are re-created and that they've lost all of their history records
Expected: in the above described scenario the items and other entries inherited by the host from this template should remain unchanged