Skip to content

Commit ded68ba

Browse files
committed
Updates to MCC import
1 parent 3081251 commit ded68ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mcc/resources/web/mcc/panel/MccImportPanel.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ Ext4.define('MCC.panel.MccImportPanel', {
251251

252252
sex: function(val, panel, row) {
253253
val = panel.stripLeadingNumbers(val);
254+
if (val && val.toLowerCase() === 'tbd') {
255+
val = 'unknown';
256+
}
257+
254258
val = panel.enforceAllowableValues(val, ['male', 'female', 'unknown'], row);
255259

256260
return(val);
@@ -1215,7 +1219,7 @@ Ext4.define('MCC.panel.MccImportPanel', {
12151219
commands.push({
12161220
command: 'insert',
12171221
schemaName: 'study',
1218-
queryName: 'departures',
1222+
queryName: 'departure',
12191223
rows: departureInserts
12201224
});
12211225
}

0 commit comments

Comments
 (0)