A......... [ZBX-7981] fixed undefined indexes in discovery rule cloning