Skip to content

Commit

Permalink
Defect fix in validation categorizer... It's comparing id to `title…
Browse files Browse the repository at this point in the history
…` when it should just be comparing `id` to `id`
  • Loading branch information
seanmcilvenna committed Jan 30, 2024
1 parent 7426398 commit b39f61e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public List<ValidationResultCategory> categorize(List<ValidationResult> results)
// using a simplified version of the title of the category to associate categorized results to categories. This
// way, if the shared db's categories changes, it won't inadvertently change the category of previously categorized
// results. This is a bit of a hack, but it works.
validationResultCategory.setCategoryCode(category.getTitle().replaceAll("[^a-zA-Z0-9]", "_"));
validationResultCategory.setCategoryCode(category.getId());
resultCategories.add(validationResultCategory);
}
}
Expand Down

0 comments on commit b39f61e

Please sign in to comment.