Describe the bug
Students are able to click the "Correction Completed" button without uploading a revised version of their thesis or dissertation. When this happens, the system immediately changes the status from "Needs Correction" to "Correction Received", even though no revised file has actually been uploaded.
To Reproduce
Steps to reproduce the behavior:
Go to a student submission that is marked "Needs Correction"
- Do not upload a revised file
- Click the "Correction Completed" button
- See the status change to "Correction Received"
Expected behavior
The "Correction Completed" button should only work if the student has uploaded a new revised file. If no revised file has been uploaded, the system should prevent the status change and show a message asking the student to upload the corrected file first.
Additional context
This issue may cause confusion for administrators because the submission status shows "Correction Received" even when no corrected file has been submitted. A validation check should be added to confirm that a new file upload exists before allowing the status update.
Describe the bug
Students are able to click the "Correction Completed" button without uploading a revised version of their thesis or dissertation. When this happens, the system immediately changes the status from "Needs Correction" to "Correction Received", even though no revised file has actually been uploaded.
To Reproduce
Steps to reproduce the behavior:
Go to a student submission that is marked "Needs Correction"
Expected behavior
The "Correction Completed" button should only work if the student has uploaded a new revised file. If no revised file has been uploaded, the system should prevent the status change and show a message asking the student to upload the corrected file first.
Additional context
This issue may cause confusion for administrators because the submission status shows "Correction Received" even when no corrected file has been submitted. A validation check should be added to confirm that a new file upload exists before allowing the status update.