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

Multiple names printed per one address in the mailing labeler

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      This is per CiviCRM forum post http://forum.civicrm.org/index.php/topic,3608.0.html
      Basically, the patch files attached allow you to select whether or not to print one mailing label per unique address. It also creates a list of all people at that address and prints them one name per line as below:

      Marty Lampard
      Don Funnyname
      Peter Hairy
      1234 Street Rd
      Cityville

      The consolidation of names to one address saves multiple mailouts to the same address.
      I created an updates directory in /sites/all/modules/civicrm/ and dropped these patch files in there. Then I changed directories into this directory and patched using the following commands:

      patch ../CRM/Utils/Address.php Address.diff
      patch ../CRM/Contact/Form/Task/Label.php Label_php.diff
      patch ../templates/CRM/Contact/Form/Task/Label.tpl Label.tpl.diff

        Attachments

        1. Address.diff
          0.9 kB
          Marty Lampard
        2. Label.php.diff
          3 kB
          Marty Lampard
        3. Label.tpl.diff
          0.4 kB
          Marty Lampard

          Activity

            People

            • Assignee:
              amit Amiteshwar Prasad
              Reporter:
              mlampard Marty Lampard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: