JavaScriptError in Core.js _formatErrorString
---------------------------------------------

                 Key: TRINIDAD-873
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-873
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.0.5-core
            Reporter: Thomas Spiegl
            Assignee: Matthias Weßendorf


currValue in defined in function _formatErrorString line 2807 may be a function 
(eg. removeDuplicates)
currValue.replace will then cause a JavaScript error

adding a typeof fixes the problem

    // if the token has no value or !typeof string, replace it with the empty 
string
    if (!currValue || !(typeof currValue == "string"))
    {
      currValue = "";
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to