It's possible to create Facilities with not unique name

Description

Verifying the bugs reported by on #help channel, I noticed that it can actually happen that in the selection options the same names of facilities will appear. This may be due to the fact that we can create facilities with the same names, and only the code should be unique.

Reproduction steps:

  1. Log in as administrator and go to Stock Management > Stock on Hand.

  2. Select Supervised Facility as Facility Type, program Family Planning and “General Hospital Dambam” as a facility.

  3. Two facilities with the same name are visible, although each has a different geographic zone and code.

  4. Go to Administration > Facilities and Add facility with an already existing name e.g. Comfort Health Clinic.

  5. The facility is added.

 

Expected results:

  • Due to the consequences, we should only be able to enter the unique Facility and Facility Type names →

 

Environment

None

Status

Assignee

Unassigned

Reporter

Joanna Szymańska

Labels

Epic Link

Components

Priority

Major
Configure