[ZBX-2412] Deleting map with the API Created: 2010 May 07  Updated: 2017 May 30  Resolved: 2010 May 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 1.8.2
Fix Version/s: 1.8.3

Type: Incident report Priority: Major
Reporter: Artem Suharev (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

http://www.zabbix.com/forum/showthread.php?t=16974

There is a bug when you try to delete a map with the API. Elements concerning this map are not deleted in the other maps.

In the file class.cmap.php, line 677, I think you have to change :
' WHERE '.DBcondition('sysmapid',$sysmapids).
by
' WHERE '.DBcondition('elementid',$sysmapids).

Thank you for the API. With python, it's a real pleasure to interface our system with zabbix.



 Comments   
Comment by Artem Suharev (Inactive) [ 2010 May 07 ]

Fixed directly in 1.8 and trunk

Generated at Sat Apr 20 08:08:48 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.