We're updating the issue view to help you get more done. 

The update of the Show flag in reasons isn't saved

Description

During regression tests, I noticed that the "Show" flag in reasons is no longer updated, and the issue is not only on the UI - the updated reason isn't hidden/shown in requisitions etc. after the update. The issue occurs on both browsers and both for demo-data reasons and for newly-created ones.

Reproduction steps:

  1. Log into the application as administrator.

  2. Navigate to Administration > Reasons.

  3. Click the "Edit" button next to the "Receipts" reason.

  4. Delete the "Family Planning" and "Health Center" assignment with the "Show" flag set as false.

  5. Add the assignment for Family Planning and Health Center with the "Show" flag set as true and save the changes.

  6. Initiate a regular requisition for Family Planning and Comfort Health Clinic.

  7. Go to the "Total losses and adjustments" modal.

  8. The "Receipts" reason is not visible in the "Reason" drop-down, even though it should.

Expected results:

  • The "Show" flag should be updated both on the UI and on the back-end.

Environment

None

Status

Assignee

Ian Manyama

Reporter

Joanna Bebak

Labels

Story Points

3

Time tracking

8h

Epic Link

Components

Sprint

None

Fix versions

Priority

Critical