studyu
studyu copied to clipboard
Bug: Intervention or Survey not correctly saved when creating them first time
Bug seems to occur on all branches, including main
(https://designer.studyu.health)
Steps to reproduce:
- Create a new study
- Give that study a name
- Go to Intervention
- Add a new intervention, modify the title and fill out the description
- Add a intervention task, fill out title
- Save both
- Click on "Unnamed intervention". Neither the intervention title nor the intervention description are saved. Only the task is saved correctly.
The same happens with a new measurement survey. After the bug occured once, it does not happen anymore.
Solution
Seems to be related to https://github.com/hpi-studyu/studyu/blob/dev/designer_v2/lib/features/study/study_test_controller.dart
Removing all occurences of studyTestControllerProvider
solves the issue (here and here)