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

addressee/postal/mailing greeting -- clean string on construction

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2.5
    • Fix Version/s: 3.3.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      the attached patch improves the construction of addressee, postal, and email greeting fields by removing leading, trailing, and double spaces.
      the current behavior is prone to leaving extra spaces, especially for individual contacts (e.g. if the middle name is part of the formula but the contact does not have data in that field).

      note – the stripSpaces function may be better off moved to the BAO or DAO file for general access. i couldn't find any existing functions that served this purpose.

        Attachments

          Activity

            People

            • Assignee:
              priya Priya Prajapati
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: