It's possible to create a facility type with not unique name

Description

When I was executing OLMIS-4261, I noticed that one can create a facility type with a non-unique name. The result is that when choosing the facility type on the Facilities and Requisition Template screen, facility types are indistinguishable.

Reproduction steps:

  1. Log in as administrator.

  2. Go to Administration > Facility Type and click the "Add Facility Type" button.

  3. Create two active facility types with the same names e.g.Test.

  4. Go to Administration > Facilities and click "Edit" button next to any facility.

  5. Expand the facility type list.

  6. The same facility type name appears in the list twice.

  7. Go to Administration > Requisition Template and click the "Configure" button next to any template.

  8. Go to Template Settings and expand the facility type list.

  9. The same facility type name appears in the list twice.
    Please take a look at the screenshots:

Expected result:

  • It should not be possible to create a facility type with the same name.

Environment

None

Assignee

Unassigned

Reporter

Joanna Szymańska

Labels

Epic Link

Components

Priority

Major
Configure