-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.0.0alpha9
Steps to reproduce:
1. Create discovery rule on host with item prototypes.
2. Wait until items on host are discovered.
3. Create item on this host dependent on discovered item.
4. Try to clone this host.
Result:
Cannot add host Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:599] Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:599] Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:666] Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:672] Undefined index: [hosts.php:709 → copyItems() in include/items.inc.php:673] Incorrect value for field "master_itemid": cannot be empty.
Expected:
In this case host cloning, exporting, etc.. should be handled in way not to copy discovered and dependent items