Skip to content
Snippets Groups Projects
Commit ef50a35f authored by gnaegi's avatar gnaegi
Browse files

OO-1492 fix empty value check in user import wizard

parent e618bd8a
No related branches found
No related tags found
No related merge requests found
...@@ -348,7 +348,9 @@ class ImportStep00 extends BasicStep { ...@@ -348,7 +348,9 @@ class ImportStep00 extends BasicStep {
} }
// used for call-back value depending on PropertyHandler // used for call-back value depending on PropertyHandler
ValidationError validationError = new ValidationError(); ValidationError validationError = new ValidationError();
if (!userPropertyHandler.isValidValue(null, thisValue, validationError, getLocale())) { // Only validate value when not empty. In case of mandatory fields the previous check makes sure the
// user has a non-empty value.
if (StringHelper.containsNonWhitespace(thisValue) && !userPropertyHandler.isValidValue(null, thisValue, validationError, getLocale())) {
String error = "unkown"; String error = "unkown";
String label = ""; String label = "";
if(userPropertyHandler.i18nFormElementLabelKey() != null) { if(userPropertyHandler.i18nFormElementLabelKey() != null) {
......
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