From 9b26843570703281e0c198d3b445011d2ded255c Mon Sep 17 00:00:00 2001 From: Nico Athanassiadis <nico@dsv.su.se> Date: Wed, 19 Feb 2025 09:37:33 +0100 Subject: [PATCH] Bug resubmissions of final thesis shows old date (#113) Previously if an author resubmitted their final thesis to the supervisor fora re-submission to the examiner the date of submission was the first submitted final thesis. And the status text only showed "Waiting for grading". This caused a lot of confusion for the authors when the dates and status of the final thesis was divergent from their perceived view of dates and changes. Fixes #79 Reviewed-on: https://gitea.dsv.su.se/DMC/scipro/pulls/113 Reviewed-by: Andreas Svanberg <andreass@dsv.su.se> Co-authored-by: Nico Athanassiadis <nico@dsv.su.se> Co-committed-by: Nico Athanassiadis <nico@dsv.su.se> --- .../scipro/integration/daisy/workers/RejectedThesisWorker.java | 1 + 1 file changed, 1 insertion(+) diff --git a/daisy-integration/src/main/java/se/su/dsv/scipro/integration/daisy/workers/RejectedThesisWorker.java b/daisy-integration/src/main/java/se/su/dsv/scipro/integration/daisy/workers/RejectedThesisWorker.java index 6b4bfe4a31..facfd13013 100644 --- a/daisy-integration/src/main/java/se/su/dsv/scipro/integration/daisy/workers/RejectedThesisWorker.java +++ b/daisy-integration/src/main/java/se/su/dsv/scipro/integration/daisy/workers/RejectedThesisWorker.java @@ -56,6 +56,7 @@ public class RejectedThesisWorker extends AbstractWorker { if (supervisorGradingReport.getLastModified().before(rejectedDate)) { supervisorGradingReport.setState(GradingReport.State.INITIAL); supervisorGradingReport.setSubmitted(false); + supervisorGradingReport.setDateSubmittedToExaminer(null); supervisorGradingReport.setRejectionComment(thesisRejection.getMessage()); } }