tim-connector: Pass component to WrongValueException in connectors configuration
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
parent
0d921ce747
commit
b9022bc6a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue