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:
Log in as administrator and navigate to Administration > Facilities > Kankao Health Facility and click Edit.
Go to the Associated Programs tab, the programs listed should be Family Planning and Essential Meds.
Unclick the Active checkbox next to Family Planning.
Log out and log in as srmanager4.
Navigate to Requisitions > Create/Authorize.
Select the Family Planning program and click Search.
You will receive the Internal Application Error message, and you cannot proceed with creating a requisition for this program.
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.