Details
- 
    Type:
Improvement
 - 
    Status: Done/Fixed
 - 
    Priority:
Major
 - 
    Resolution: Fixed/Completed
 - 
    Affects Version/s: 2.1
 - 
    Fix Version/s: 2.2.0
 - 
    Component/s: Core CiviCRM
 - 
    Labels:None
 
Description
In v2.1 we allow setting / creation Current employer only in Contact Add / Edit form.
In v 2.2, Contact Summary >> Relationship
On Individual Contact Summary:
- When relationship type "Employee Of" is selected, show a radio button "Current Employer" in the selector.
When someone checks radio, we should create current employer relation between Individual and selected Organization. - On update of "Employee Of" relationship, There should be "Is current employee?" check box. If checked we should create current employer relation between Organization and individual.
 
On Organization Contact Summary:
- When relationship type "Employer of" is selected, show a check box "Is Current Employee" in the selector.
When someone checks, we should create current employer relation between Organization and selected Individual. - On update of "Employer Of" relationship, There should be "Is current employer?" check box. If checked we should create current employer relation between Organization and individual.
 
- Also during import when "Employee of " relationship is imported we should set relationship as Current Employer.
 
- We should "cache" the current employer in the contact table (employer_id) when the employee / employer relationship is created through the "On Behalf of an Organization" option in an online contribution page.
 
-------------------------------  Original Post     ----------------------------------------------------------------------------------------------------------------
The text of the "Current Employer:" link in the View Contact "Summary" tab is not updated after user creates new employee-employer relationship.  It remains stuck on the name of the first employer with which the individual account had an employer-employee relationship.  (Nevertheless, the link correctly points to the new employer.)
Attachments
Issue Links
- supplements
 - 
                    
CRM-3820 Script to update the employer field
-         
 - Done/Fixed
 
 -