Skip to content

Commit

Permalink
Additional empty attribute check in application (#3198)
Browse files Browse the repository at this point in the history
* attribute dst_attr was checked for null value
* it needs to be checked for empty value too as it is passed from GUI
  • Loading branch information
Johaney-s authored and Vojtech-Sassmann committed May 7, 2021
1 parent 88af4c1 commit 9c481db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3658,7 +3658,7 @@ private Candidate createCandidateFromApplicationData(Application app) {
// put application data into Candidate
final Map<String, String> attributes = new HashMap<>();
jdbc.query("select dst_attr,value from application_data d, application_form_items i where d.item_id=i.id "
+ "and i.dst_attr is not null and d.value is not null and app_id=?",
+ "and i.dst_attr is not null and i.dst_attr <> '' and d.value is not null and app_id=?",
(resultSet, i) -> {
attributes.put(resultSet.getString("dst_attr"), resultSet.getString("value"));
return null;
Expand Down

0 comments on commit 9c481db

Please sign in to comment.