"Reason not working" is not saved or NPE after updating functional status

Description

Reproduction Steps:
1. Log in as divo1.
2. Go to the CCE Management -> CCE Inventory.
3. Click edit functional status (select inventory item with Dep-sito Distrital Cuamba as facility, because divo1 has CCE_INVENTORY_EDIT right for it)
4. Change functionality status to Obsolete.
5. Select one of the reasons from the list.
6. Select decommission date.
7. Click update button.
8. Click edit functional status button again.
9. Reason not working or not in use is not saved.

Second problem:
1-3. Steps are the same.
4. Change functionality status to Non-functioning.
5. Select one of the reasons from the list.
7. Click update button.
8. Internal Server Error with java.lang.NullPointerException is returned.

Environment

None

Status

Assignee

Paweł Albecki

Reporter

Klaudia Pałkowska

Labels

None

Story Points

3

Time tracking

5h

Epic Link

Components

Sprint

None

Fix versions

Priority

Minor
Configure