Current employer dissapears when disabling expired relationships
Original issue: https://issues.civicrm.org/jira/browse/CRM-21851
Affected versions: at least from 5.0.0
How to reproduce:
Create a current relationship on individual A as employee of organization B and mark as current employer
Create a past relationship on individual A as employee of organization B without marking as current employer
At this point on summary tab of individual A appears organization B as his Employer.
- Run Disable expired relationships cron job
At this point on summary tab there is no organization at Employer field although there is one active employee relationship and past relationship was disabled.