Просмотр исходного кода

fixed error 400 temporal for blank modification fields

rajah 5 месяцев назад
Родитель
Сommit
19c164240d

+ 1 - 1
src/main/java/fr/triplea/demovote/web/controller/AccountController.java

@@ -66,7 +66,7 @@ public class AccountController
         ParticipantTransfer p = new ParticipantTransfer();
         
         p.setDateCreation(found.hasDateCreation() ? dtf.format(found.getDateCreation()) : "");
-        p.setDateModification(found.hasDateCreation() ? dtf.format(found.getDateModification()) : ""); 
+        p.setDateModification(found.hasDateModification() ? dtf.format(found.getDateModification()) : ""); 
         p.setNumeroParticipant(found.getNumeroParticipant());
         
         p.setNom(found.getNom());

+ 1 - 1
src/main/java/fr/triplea/demovote/web/controller/ParticipantController.java

@@ -151,7 +151,7 @@ public class ParticipantController
       ParticipantTransfer p = new ParticipantTransfer();
       
       p.setDateCreation(found.hasDateCreation() ? dtf.format(found.getDateCreation()) : "");
-      p.setDateModification(found.hasDateCreation() ? dtf.format(found.getDateModification()) : ""); 
+      p.setDateModification(found.hasDateModification() ? dtf.format(found.getDateModification()) : ""); 
       p.setNumeroParticipant(found.getNumeroParticipant());
       
       p.setNom(found.getNom());