Creating relationship with start date in future incorrectly shows relationship as active
Overview
Creating relationship with start date in future incorrectly shows relationship as active
Reproduction steps
- Go to a contact record, then go to the relationships tab
- Create a new relationship of any type
- Give the relationship a start date that is in the future
- Save the new relationship
Current behaviour
The relationship is saved correctly, but displays within 'current relationships' in the top half of the relationships tab.
Expected behaviour
As the relationship has not yet started, the relationship should show as inactive up until the start date; at which point it should show as current.
Environment information
- Browser: Chrome
- CiviCRM: 5.19 (also tested on 5.15 on this test site and contact record: https://civicrm.demo.civihosting.com/civicrm/contact/view?reset=1&cid=98)
- PHP: _7.0
- CMS: Drupal
Comments
Contact record from my testing on a demo site: https://civicrm.demo.civihosting.com/civicrm/contact/view?reset=1&cid=98
cc @jamienovick1 @shitijg