bcgov / bcgov/SIMS

Wrong restriction reason when category is changed

Open
#1,802 0 comments 0 reactions 0 assignees View on GitHub
Ad-hoc Bug Ministry
Dominant language
TypeScript
Stars
29
Forks
15
PR merge metrics
No merged PRs in 30d

Description

While authenticated as a Ministry user and adding a new restriction to the student account, depending on how the Category and Reason are selected, the Reason can end up with an inconsistent value displayed.
As shown below, the number 10 is shown instead of the description.

![image.png](https://images.zenhubusercontent.com/5fcebe3c076e6aaed83693fb/6ed37dfa-8698-4df5-9a45-124decf63fa6)

**How to reproduce**
- Navigate to the Ministry portal, search for a student;
- On the restrictions tab click to "Add restriction";
- Select a category;
- Select a reason;
- Change the category.

**Expected result**: while selecting the category the reason must be reset.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.