sharezone-app
sharezone-app copied to clipboard
A submitted homework that was marked "not done" can't be marked as done again.
Describe the bug
A homework with a submission that was sucessfully submitted, then marked as "not done" and then marked as done again can't be marked as done again.
Steps to Reproduce
(See video below)
- Go to homework page
- Create a new homework with submissions
- Go to the submission page of the homework
- Upload a file
- Submit the homework.
- Go to the homework page
- Switch to the done / completed homeworks tab
- Tap onto the homework from above
- Tap onto "mark as not done / not completed" at the bottom of the page
- Go to the not done / not completed homeworks tab
- Tap onto the homework from above
- (see below)
Current broken behavior
- The button at the bottom of the page says "mark as not done / not completed" even though the homework was already marked as not completed and appears on the not completed homework tab.
- If the button is pressed the homework does not get marked as done (i.e. the homework can never be marked as completed again).
Expected behavior
- The button at the bottom of the page should say "mark as done / completed".
- If pressed the homework should be marked as completed and appear in the completed homeworks tab.
Screenshots, videos or logs
https://user-images.githubusercontent.com/29028262/151866267-9d858782-053f-4468-b758-b00b8b5b6a40.mp4
Tested device
- Device: Pixel 4a
- OS: Android 12
- App version: 1.6.1 (315)
Original Issue: https://gitlab.com/codingbrain/sharezone/sharezone-app/-/issues/1426