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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Critical
    • 1.8.11
    • Affects Version/s: 1.8.9
    • Component/s: Frontend (F)
    • Environment:
      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.

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

              Created:
              Updated:
              Resolved: