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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.5
    • Component/s: Frontend (F)
    • Labels:
      None
    • Environment:
      Linux

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: