Skip to content

Commit

Permalink
turning off validation of unchanged value for lookup table (MID-6024)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 12, 2020
1 parent e30264c commit d895748
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -94,7 +94,13 @@ public C convertToObject(String value, Locale arg1) throws ConversionException {
}
}

if (strict) {
boolean differentValue = true;
if (getBaseFormComponent() != null && getBaseFormComponent().getModelObject() != null
&& getBaseFormComponent().getModelObject().equals(value)) {
differentValue = false;
}

if (differentValue && strict) {
throw new ConversionException("Cannot convert " + value);
}

Expand Down Expand Up @@ -194,4 +200,3 @@ protected void updateFeedbackPanel(AutoCompleteTextField input, boolean isError,


}

0 comments on commit d895748

Please sign in to comment.