Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-2102

Return generic validation error were no `Message` key is defined

    XMLWordPrintable

Details

    Description

      If we define a validation rule with the message then if the rule fails we can return the message into a Flash element. If we return false the validationErrors array is still there but instead of including a message it includes the key of the rule that failed.
      We are going to find if the array contains a rule key instead of a message and we will replace it with a generic message, like:

      _field_name_ failed
      

      Attachments

        Issue Links

          Activity

            People

              tom.zeller.5@at.internet2.edu Tom Zeller
              ioannis.e.igoumenos@at.internet2.edu Ioannis Eythymios Igoumenos (google.com)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: