[ZBX-5250] host.massRemove and macros parameter Created: 2012 Jun 28  Updated: 2017 May 30  Resolved: 2012 Jul 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.0.0
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: gescheit Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

http://www.zabbix.com/documentation/2.0/manual/appendix/api/host/massremove
I tried to delete macros from host by name, but it impossible because:
api/classes/CHost.php line 2149
if (isset($data['macros'])) {
$result = API::UserMacro()->delete(zbx_toArray($data['macros']));
if (!$result)

{ self::exception(); }

}
But API::UserMacro()->delete() must receive macrosid, not name of macros.



 Comments   
Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 26 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-5250.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 31 ]

Fixed in 2.0.3rc1 r29264 and 2.1.0 r29265.

CLOSED.

Generated at Fri Apr 26 09:41:19 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.