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

Line breaks in custom fields export as <br />

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 4.0.8
    • Fix Version/s: Unscheduled
    • Component/s: CiviContribute
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      CSV export is calling CRM_Core_BAO_CustomField::getDisplayValue() on custom fields, which adds a <br /> before each newline via the nl2br() function. This makes sense when the field value is rendered in HTML format, but for the CSV export, the field value should be rendered in plain text format.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mfb Mark Burdett
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: