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

JS addvalues() function fails to assign proper values to parent window

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.8.11
    • 1.8.9
    • Frontend (F)
    • Debian sid, amd64

      When trying to set and ymax item to a graph, it kept telling me "Warning. Field [ymax_itemid] is not integer".

      After some debugging time, i found the values assigned by the popup to the parent window are wrong (ymax_itemid=>"<item_description>", ymax_name=>"").
      I found the JS function addValues does not assign values correctly due to the tmpStorage variable not being reinitialized in the loop, which triggers the bug when parentDocumentForms.length is (always) wrong.

      The attached small patch fixes the problem.

            Unassigned Unassigned
            duck Marc Dequènes (Duck)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: