Skip to content

Commit

Permalink
Select custom field for import if it has a "spec"
Browse files Browse the repository at this point in the history
A field with a "spec" is one returned by corehq.apps.case_importer.suggested_fields.get_suggested_case_fields(). Before 2772741 these fields were selected for import by default.
  • Loading branch information
millerdev committed Sep 10, 2024
1 parent 9dc3ca7 commit 2c90bb9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ hqDefine('case_importer/js/excel_fields', [
row.isCustom(false);
row.selectedCaseField(field);
} else {
var spec = _(caseFieldSpecs).findWhere({field});
row.isCustom(_.isEmpty(spec) && !systemFields.contains(field));
row.isCustom(!systemFields.contains(field));
row.selectedCaseField(null);
}
};
Expand Down

0 comments on commit 2c90bb9

Please sign in to comment.