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

"Map URL" button on map item failed

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6
    • None
    • Frontend (F)
    • None
    • Server version: Apache/2.2.3
      Tested under:
      Firefox 3.0.11
      IE 6.0.2900

    Description

      Check URL in DB:

      mysql> select selementid,url from sysmaps_elements where selementid=14;
      -------------------------------+

      selementid url

      -------------------------------+

      -------------------------------+

      Its OK.

      But when "Map URL" button pressed browser redirected to URL: http://10.170.29.1010.170.29.10/?sid=75312c05d3b146ec which leads to unknown location.

      Suggested FIX:

      include/maps.inc.php:

      OLD code:
      $menus.= "['".S_MAP.SPACE.S_URL."',\"javascript: redirect('".$url."')\", null,

      {'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}

      ],";

      NEW code:
      $menus.= "['".S_MAP.SPACE.S_URL."',\"javascript: location.replace('".$url."')\", null,

      {'outer' : ['pum_o_item'],'inner' : ['pum_i_item']}

      ],";

      Attachments

        Activity

          People

            Unassigned Unassigned
            timmy Alexander Timakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: