A......... [ZBX-8764] Fix resource ID not being set to 0 when resource type does not need resource. Add resource style validation.