[ZBX-3682] When Zabbix imports a map including nameless icon, the icon name becomes "3". Created: 2011 Apr 01  Updated: 2017 May 30  Resolved: 2011 May 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Takanori Suzuki Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: PNG File map_label_01.png     PNG File map_label_02.png     File zabbix-1.8.4-fix_importing_map_icon_label.patch    

 Description   

When Zabbix imports a map including nameless icon, the icon name becomes "3".
Please see attached files.

[How to reproduce]
At first, I made a map like "map_label_01.png".
I exported the map and imported to another Zabbix.
Then, the imported map became like "map_label_02.png".

The nameless icons in "map_label_01.png" became named as "3" in "map_label_02.png".

[Why it occurs]
The default value of icon is set as "3" in "frontends/php/api/classes/class.cmap.php" line 879.
I suggest to set the default value as ''.
I attached a patch as zabbix-1.8.4-fix_importing_map_icon_label.patch.



 Comments   
Comment by Alexei Vladishev [ 2011 May 13 ]

Thank you for the patch.

Fixed in revision 19539. Ready to test!

Comment by Alexei Vladishev [ 2011 May 16 ]

Merged into 1.8.x, revision 19656.

Generated at Sat Apr 27 08:16:59 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.