Customer and patient search doesn't exclude inactive customer relationships

Description

If Customers - Select is used to locate patients by entering a patient name or id, the results can include inactive customer ownership relationships.
To reproduce:
1. assign an existing patient to a new owner
2. enter the patient name into the Patient field of Customers - Select
3. both the prior and current owner of the patient will be listed when pressing Find. This should only occur if Active = Both is selected.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

1.8

Priority

Minor