It's possible to create a stock reason without assignments

Description

I noticed an issue when I was executing the test case. Currently, it's possible to create a reason without any assignments. This shouldn't be so, and it's a regression. Please look at the screenshot. This works the same on demo-v3, so it’s not a recent regression.

Reproduction steps:

  1. Log into the application as administrator.

  2. Go to Administration > Reasons.

  3. Click the "Add Reason" button.

  4. Enter any name, category and type.

  5. Click the "Add New Reason" button.

  6. The reason is created.

Expected results:

  • The reason shouldn't be created. Instead, "Facility Type" and "Program" should be marked as required and the modal with the information that the form is invalid should appear.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Epic Link

Components

Priority

Major
Configure