Internal application error when associated program is inactive

Description

When a program is made inactive for a facility (my facility or supervised facilities), I still see the program available to select. Then when I select the program and click search, I receive an Internal Application error message and can't proceed with my requisition.

Steps to Reproduce:

  1. Log in as administrator and navigate to Administration > Facilities > Kankao Health Facility and click Edit.

  2. Go to the Associated Programs tab, the programs listed should be Family Planning and Essential Meds.

  3. Unclick the Active checkbox next to Family Planning.

  4. Save changes.

  5. Log out and log in as srmanager4.

  6. Navigate to Requisitions > Create/Authorize.

  7. Select the Family Planning program and click Search.

  8. You will receive the Internal Application Error message, and you cannot proceed with creating a requisition for this program.

Expected Results
Option A: When a program is inactive, the user will receive an error message stating that the program is inactive and to check with their Admin.
Option B: When a program is inactive, it does not appear in the Program dropdown to select.

This is not a regression because I tested it in demo-v3.openlmis.org and the error was the same.

Environment

uat.openlmis.org

Assignee

Jakub Kondrat

Reporter

Sam Im

Labels

Story Points

3

Time tracking

16h

Epic Link

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure