Answers.Body: <p>@AlainB I totally agree that this should not happen for all location types. Do I understand correctly that:</p>
  
  <ul>
  <li>I change the address of John Doe</li>
  <li>I tick the 'use another contact's address'</li>
  <li>I then select organization CompanyB</li>
  </ul>
  
  <p>and then companyB automatically becomes the employer of John Doe?</p>
  
  <p>That sounds like unwanted behaviour to me, I would not expect the employer to change automatically even if I changed the work address. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T15:41:05.187Z
Answers.Text: Yes, that's right. You can check this in the demo database by selecting e.g. "Lou Jameson III"  (contact id = 184). He has only a home address, and current employer Newtonia Peace Systems. Give him an address of type "other" and refer to e.g. "Bay Health Partnership". You will see that it will become his new employer.
Answers.UserDisplayName: AlainB
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-06T13:54:03.280Z
Answers.Text: I would not expect the employee of relationship/field to change whatever changes I make to an address. That sounds like weird behaviour (and if you need such behaviour you can use civirules for that specific configuration).
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T13:24:02.747Z
Answers.LastActivityDate: 2018-03-05T13:24:02.747Z
Answers.UserDisplayName: ErikH - CiviCooP
Answers.Body: <p>It looks like a relic from an earlier era and an opportunity to simplify one tiny corner of the codebase.  Maybe we could just document a CiviRules recipe to re-implement the current behaviour and remove it entirely.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T15:56:09.210Z
Answers.LastActivityDate: 2018-03-05T15:56:09.210Z
Answers.UserDisplayName: Aidan
Body: <p>I need your opinion on a standard CiviCRM behavior:</p>
  
  <p>When you add or change the address of an individual AND you check "Use another contact's address", AND that target contact is an organization, then the current employer is changed + the "employee of" relationship.
  Regardless of the location type.</p>
  
  <p>This makes sense for location type "work". But why does this happen for all location types?</p>
  
  <p>Wouldn't it better to limit this functionality to location type "work"? Or add a checkbox on location types, so users can specify on which location types they expect that behavior?</p>
  
Tags: <contacts><addresses>
Title: Effect of address change on current employer
ThreadText: # Effect of address change on current employer
  
  (Asked by: username_0 on 2018-03-05)
  
  I need your opinion on a standard CiviCRM behavior:
  
  When you add or change the address of an individual AND you check "Use another contact's address", AND that target contact is an organization, then the current employer is changed + the "employee of" relationship.
  Regardless of the location type.
  
  This makes sense for location type "work". But why does this happen for all location types?
  
  Wouldn't it better to limit this functionality to location type "work"? Or add a checkbox on location types, so users can specify on which location types they expect that behavior?
  
  **Tags:** contacts, addresses
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-03-05. Score: 2
  
  @username_0 I totally agree that this should not happen for all location types. Do I understand correctly that:
  
  * I change the address of John Doe
  * I tick the 'use another contact's address'
  * I then select organization CompanyB
  
  and then companyB automatically becomes the employer of John Doe?
  
  That sounds like unwanted behaviour to me, I would not expect the employer to change automatically even if I changed the work address.
  
  > **Comments:**
  > **username_0**: Yes, that's right. You can check this in the demo database by selecting e.g. "Lou Jameson III"  (contact id = 184). He has only a home address, and current employer Newtonia Peace Systems. Give him an address of type "other" and refer to e.g. "Bay Health Partnership". You will see that it will become his new employer.  
  > **username_2**: I would not expect the employee of relationship/field to change whatever changes I make to an address. That sounds like weird behaviour (and if you need such behaviour you can use civirules for that specific configuration).  
  
  ---
  
  ### Answer by username_3 on 2018-03-05. Score: 2
  
  It looks like a relic from an earlier era and an opportunity to simplify one tiny corner of the codebase. Maybe we could just document a CiviRules recipe to re-implement the current behaviour and remove it entirely.
  
  
  ---
  
  