Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3736

Client Validation is broken for Struts2 themes

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Since Version 2.3.1 the Client Validation for Struts2 Themes is broken.
      Because the StrutsUtils.getValidationErrors Methos in utils.js expected an commented JSON String.

      StrutsUtils.getValidationErrors = function(data) {
      if(data.indexOf("/* {") === 0)

      { return eval("( " + data.substring(2, data.length - 2) + " )"); }

      else

      { return null; }


      };

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jogep Johannes Geppert
            jogep Johannes Geppert
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment