Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3626

When Zabbix imports a map template, the each icons are created twice at same coordinate point.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.8.5
    • 1.8.4
    • Frontend (F)
    • None
    • Linux

      When Zabbix imports a map template, the each icons are created twice at same coordinate point.

      [How to reproduce]
      (1) Make a map as "01_map_before_export.png" and export it.
      (2) Delete the map.
      (3) Import the exported map.
      (4) Then, we get a map with duplicated icons as "02_map_after_import.png".
      I dragged the duplicated icons as easy to understand, though the icons were made at same coordinate point.

      [why it occurs]
      In frontends/php/include/export.inc.php:784, there is CMap::addElements.
      In frontends/php/api/classes/class.cmap.php:587, there is also self::addElements which is CMap::addElements.
      When importing map, the both above two codes are called.
      So, the each icons are created twice.

      I made a patch for removing self::addElements at frontends/php/api/classes/class.cmap.php:587.

            Unassigned Unassigned
            tsuzuki Takanori Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: