From b9022bc6a49e9c25fe6f13ede24b10ca5f1fdc85 Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Thu, 14 Feb 2013 11:11:01 +0100 Subject: [PATCH] tim-connector: Pass component to WrongValueException in connectors configuration FEA: ItEr77S16JiraAndTimConnectorContributionIntegration --- .../org/libreplan/web/common/ConfigurationController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java b/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java index ca8b9feed..3631c5c0d 100644 --- a/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java +++ b/libreplan-webapp/src/main/java/org/libreplan/web/common/ConfigurationController.java @@ -1130,7 +1130,7 @@ public class ConfigurationController extends GenericForwardComposer { public void validate(Component comp, Object value) { if (name.equals("Activated")) { if (!value.equals("Y") && !value.equals("N")) { - throw new WrongValueException( + throw new WrongValueException(comp, _("Only Y/N allowed")); } } else if (name.equals("Server") @@ -1141,7 +1141,7 @@ public class ConfigurationController extends GenericForwardComposer { } else if (name.equals("NrDaysTimesheetToTim") || name.equals("NrDaysRosterFromTim")) { if (!isNumeric((String) value)) { - throw new WrongValueException( + throw new WrongValueException(comp, _("Only digits allowed")); } }