From 7d35472ea556c11ac51c440a8eaa55f217ee5b32 Mon Sep 17 00:00:00 2001 From: Thibaut Valentin Date: Wed, 5 Feb 2025 11:12:43 +0100 Subject: [PATCH] fix(aff): licence number parsing --- .../fr/titionfire/ffsaf/rest/from/AffiliationRequestForm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/titionfire/ffsaf/rest/from/AffiliationRequestForm.java b/src/main/java/fr/titionfire/ffsaf/rest/from/AffiliationRequestForm.java index 985510c..494acad 100644 --- a/src/main/java/fr/titionfire/ffsaf/rest/from/AffiliationRequestForm.java +++ b/src/main/java/fr/titionfire/ffsaf/rest/from/AffiliationRequestForm.java @@ -125,14 +125,14 @@ public class AffiliationRequestForm { model.setM2_lname(this.getM2_lname()); model.setM2_fname(this.getM2_fname()); model.setM2_email(this.getM2_email()); - model.setM2_lincence((this.getM1_lincence() == null || this.getM1_lincence().isBlank()) + model.setM2_lincence((this.getM2_lincence() == null || this.getM2_lincence().isBlank()) ? -1 : Integer.parseInt(this.getM2_lincence())); model.setM2_role(this.getM2_role()); model.setM3_lname(this.getM3_lname()); model.setM3_fname(this.getM3_fname()); model.setM3_email(this.getM3_email()); - model.setM3_lincence((this.getM1_lincence() == null || this.getM1_lincence().isBlank()) + model.setM3_lincence((this.getM3_lincence() == null || this.getM3_lincence().isBlank()) ? -1 : Integer.parseInt(this.getM3_lincence())); model.setM3_role(this.getM3_role());