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

groups with line breaks in the description break group listing display

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      group descriptions are stored in plain text (no html), which means line breaks (\r\n) are used instead of html <br /> tags. the line breaks affect the new manage groups listing display (the presence of a group with a line break prevents the list from displaying).

      we need to convert at some point in the process. I handled it in Group/Page/AJAX.php, just before we JSON encode, by a simple str_replace on the description field. but it might be better to handle it directly in Utils/JSON.php so that we ensure there are never any line breaks in the data.

      reproducible on sandbox:
      http://sandbox.drupal.civicrm.org/civicrm/group?reset=1

        Attachments

          Activity

            People

            • Assignee:
              pratik.joshi Pratik Joshi
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: