Steps to reproduce:
- Create a template with discovery rule with host prototype and link this template to some host.
- Add a macro to templated host prototype using usermacro.create API method.
The macro was added only to templated host prototype. The same macro for inherited host prototype was not added.
The macro was added as for templated host prototype, as for inherited.
The same issue happens using usermacro.update, usermacro.delete API methods.
For higher versions this issue will be resolved in scope of