From a0fd84343ca7426b3f806f1b9d5b1962689bcb1e Mon Sep 17 00:00:00 2001 From: Andreas Svanberg <andreass@dsv.su.se> Date: Thu, 20 Feb 2025 13:56:13 +0100 Subject: [PATCH] Show error message when trying to add duplicate exemptions (#115) Fixes #62 ## How to test 1. Log in as admin 2. Go to "Admin / Match / Application periods" 3. Click "Edit exemptions" on the period 4. Add the same exemption twice to "Sture Student" Reviewed-on: https://gitea.dsv.su.se/DMC/scipro/pulls/115 Reviewed-by: Nico Athanassiadis <nico@dsv.su.se> Co-authored-by: Andreas Svanberg <andreass@dsv.su.se> Co-committed-by: Andreas Svanberg <andreass@dsv.su.se> --- .../AdminEditApplicationPeriodExemptionsPage.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/view/src/main/java/se/su/dsv/scipro/applicationperiod/AdminEditApplicationPeriodExemptionsPage.properties b/view/src/main/java/se/su/dsv/scipro/applicationperiod/AdminEditApplicationPeriodExemptionsPage.properties index bfb97053d6..21285f241c 100644 --- a/view/src/main/java/se/su/dsv/scipro/applicationperiod/AdminEditApplicationPeriodExemptionsPage.properties +++ b/view/src/main/java/se/su/dsv/scipro/applicationperiod/AdminEditApplicationPeriodExemptionsPage.properties @@ -10,3 +10,4 @@ Type.NUMBER_OF_AUTHORS=Min/max author limitation Type.SUBMIT_STUDENT_IDEA=Submit own idea outside open period Type.SELECT_SUPERVISOR_IDEA=Select supervisor idea outside open period type=Type to exempt +author.UniqueValidator=Exemption already exists, please remove the old one first