Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-88

Validator returns nulls in JavaScript validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 20432

    Description

      I switched from from 20030326 to last night's build today and found that the
      JavaScript was rendered incorrectly for client-side validation. The buggy
      JavaScript is:

      function required ()

      { this.aa = new Array("fullName", "'null' is a required field.", new Function ("varName", " return this[varName];")); this.ab = new Array("phoneNum", "'null' is a required field.", new Function ("varName", " return this[varName];")); this.ac = new Array("msoName", "'null' is a required field.", new Function ("varName", " return this[varName];")); this.ad = new Array("passwordHint", "'null' is a required field.", new Function ("varName", " return this[varName];")); }

      With 20030326, it correctly renders as:

      function required ()

      { this.aa = new Array("fullName", "'Full Name' is a required field.", new Function ("varName", " return this[varName];")); this.ab = new Array("phoneNum", "'Phone Number' is a required field.", new Function ("varName", " return this[varName];")); this.ac = new Array("msoName", "'MSO Name' is a required field.", new Function ("varName", " return this[varName];")); this.ad = new Array("passwordHint", "'Password Hint' is a required field.", new Function ("varName", " return this[varName];")); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            mraible@apache.org Matt Raible
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: