Skip to content
Snippets Groups Projects
Commit 80ece29d authored by buczekp's avatar buczekp
Browse files

[LMS-1858] changed validation to ignore case

SVN: 18907
parent 21aff34f
No related branches found
No related tags found
No related merge requests found
...@@ -369,7 +369,8 @@ public final class PropertyValidator implements IPropertyValueValidator ...@@ -369,7 +369,8 @@ public final class PropertyValidator implements IPropertyValueValidator
+ "Expected '<CODE> (<TYPE>)'.", value); + "Expected '<CODE> (<TYPE>)'.", value);
} }
if (materialTypeOrNull != null if (materialTypeOrNull != null
&& identifierOrNull.getTypeCode().equals(materialTypeOrNull.getCode()) == false) && identifierOrNull.getTypeCode()
.equalsIgnoreCase(materialTypeOrNull.getCode()) == false)
{ {
throw UserFailureException.fromTemplate( throw UserFailureException.fromTemplate(
"Material '%s' is of wrong type. Expected: '%s'.", value, "Material '%s' is of wrong type. Expected: '%s'.", value,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment