CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Choose relationships when setting shared addresses
Pages: [1]

Author Topic: Choose relationships when setting shared addresses  (Read 1993 times)

ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Choose relationships when setting shared addresses
February 23, 2013, 04:31:16 pm
When an address is shared between two contacts, it is likely that there is also a relationship (eg spouse, child, volunteer etc). Currently, a relationship is added automatically for shared addresses between indiv/households and indiv/org. For indiv/org, an employer/employee relationship is created - but this is not always correct.  There seems to be no way of preventing this without code changes.

The suggestion is that when the box for "Use another contact's address" is ticked and the second contact has been selected, then it checks the types of both contacts and displays a multi-select list of possible relationships.  To preserve current behaviour, it could default to selecting a employer relationship for the indiv/org case.

This would avoid the unexpected and possibly unwanted addition of employer relationships and streamline the adding of relationships when addresses are shared.

See processSharedAddressRelationship() in Core/BAO/Address.php

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Choose relationships when setting shared addresses
February 24, 2013, 04:20:46 am
Good idea! When are you planning to make this contribution?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Choose relationships when setting shared addresses
February 24, 2013, 11:54:10 am
sounds like a good improvement
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Choose relationships when setting shared addresses

This forum was archived on 2017-11-26.