Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the code searching for the config row
  • Loading branch information
grzesiek2010 committed Oct 15, 2025
commit 5da8cfe852a728374d36b61c1325af94e4034539
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static ArrayList<SelectChoice> populateExternalChoices(FormEntryPrompt fo
XPathFuncExpr xpathfuncexpr, FormController formController) throws FileNotFoundException {
try {
List<SelectChoice> selectChoices = formEntryPrompt.getSelectChoices();
if (containsConfigurationChoice(selectChoices)) {
if (!containsConfigurationChoice(selectChoices)) {
String filePath = getFilePath(xpathfuncexpr, formController);
throw new FileNotFoundException(filePath);
}
Expand Down Expand Up @@ -351,10 +351,10 @@ public static boolean isAnInteger(String value) {
private static boolean containsConfigurationChoice(List<SelectChoice> selectChoices) {
Comment thread
grzesiek2010 marked this conversation as resolved.
for (SelectChoice choice : selectChoices) {
if (!isAnInteger(choice.getValue())) {
return false;
return true;
}
}
return true;
return false;
}

private static String getFilePath(XPathFuncExpr xpathfuncexpr, FormController formController) {
Expand Down