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

Line breaks in comments in participant note

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.4.0
    • Component/s: CiviEvent
    • Labels:

      Description

      When you view a participant record, line breaks in the note are not rendered, so all the lines of text run into one long line, which can be confusing.

      To reproduce the error, go to a contact's Events tab, add an event registration, enter a few lines of text in the Notes field, and then view the participant record that has been created. The line breaks will be missing from the Note field.

      The solution to this is simple: apply the nl2br smarty modifier to the note field in templates/CRM/Event/Form/ParticipantView.tpl. (This is already done on the Notes tab for contacts - in templates/CRM/Contact/Page/View/Note.tpl.)

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              kirk Kirk Jackson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: