From bbaf07050317d80441fe00a4e3c1e96e1c5212ed Mon Sep 17 00:00:00 2001 From: Alexander Skjolden Date: Mon, 18 May 2015 22:02:45 +0200 Subject: [PATCH] Missing builder params for CarAdapter owner field - bugfix Signed-off-by: Alexander Skjolden --- languages/lang.eng.xml | 1 + languages/lang.it.xml | 1 + languages/lang.nor.xml | 1 + src/main/controller/adapter/insurance/CarAdapter.java | 2 ++ 4 files changed, 5 insertions(+) diff --git a/languages/lang.eng.xml b/languages/lang.eng.xml index 119af05..fe5677c 100644 --- a/languages/lang.eng.xml +++ b/languages/lang.eng.xml @@ -107,6 +107,7 @@ Invalid date. Horse power Must contain only numbers + Owner contain between 2 and 8 characters View customer diff --git a/languages/lang.it.xml b/languages/lang.it.xml index b5b4a6e..47f967e 100644 --- a/languages/lang.it.xml +++ b/languages/lang.it.xml @@ -103,6 +103,7 @@ Data non valida Cavalli di potenza Cavalli di potenza deve contere solo cifre + Proprietario deve contenere tra i 2 e gli 20 caratteri Mostra cliente diff --git a/languages/lang.nor.xml b/languages/lang.nor.xml index a212a7b..d526264 100644 --- a/languages/lang.nor.xml +++ b/languages/lang.nor.xml @@ -107,6 +107,7 @@ Ugyldig dato Hestekrefter Hestekrefter kan bare inneholde tall + Eier må innehold mellom 2 og 20 tegn Vis kunde diff --git a/src/main/controller/adapter/insurance/CarAdapter.java b/src/main/controller/adapter/insurance/CarAdapter.java index 1e3232b..eaa4247 100644 --- a/src/main/controller/adapter/insurance/CarAdapter.java +++ b/src/main/controller/adapter/insurance/CarAdapter.java @@ -65,6 +65,8 @@ private void initNodes() owner = new FormValueNode.Builder(Loc.c("owner")) .value(getEditMode() ? getInsurance().getOwner() : "") .regex(StringMatcher.getBaseString()) + .error(Loc.c("owner_error")) + .required(false) .build(); registration = new FormDateNode.Builder(Loc.c("vehicle_registration"),