Skip to content

Commit

Permalink
#21223 fixing import radio field
Browse files Browse the repository at this point in the history
  • Loading branch information
jdotcms committed Jan 18, 2022
1 parent aef1906 commit 3da2e26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dotCMS/src/main/java/com/dotmarketing/util/ImportUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
import java.util.function.Function;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.BooleanUtils;
import org.jetbrains.annotations.NotNull;

/**
Expand Down Expand Up @@ -734,8 +736,8 @@ private static void importLine ( String[] line, String currentHostId, Structure
}
}
if (!found) {
throw new DotRuntimeException("Line #" + lineNumber + " contains errors. Column: '" + field.getVelocityVarName() +
"', value: '" + value + "', invalid value found. Line will be ignored.");

valueObj = BooleanUtils.toBoolean(value);
}
} else {
valueObj = null;
Expand Down

0 comments on commit 3da2e26

Please sign in to comment.