Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-873

JavaScriptError in Core.js _formatErrorString

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.5-core
    • 1.0.5-core, 1.2.5-core
    • None
    • None

    Description

      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 = ""; }

      Attachments

        1. Core.js.patch
          0.5 kB
          Thomas Spiegl

        Activity

          People

            matzew Matthias Wessendorf
            tomsp Thomas Spiegl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: