Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18182

textarea fields reload as rich text on validation error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.3
    • Fix Version/s: 4.7.5
    • Component/s: Core CiviCRM
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      this is a strange one and could be very problematic. to reproduce:

      • create a custom data set with a Note field set to text area display
      • create a profile with one field set to required and then add this custom note field
      • view the form in create or edit view
      • submit the form with the required field empty to trigger form validation

      when the form reloads the text area field is rendered with the wysiwyg editor.

      that could be a real problem if you need to make sure the user does not enter html.

      reproduced here: http://dmaster.demo.civicrm.org/civicrm/profile/edit?gid=16&reset=1

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: