Working on better bug fix for downloading export files. Some columns were missing.

This commit is contained in:
Scott Idem
2024-04-23 18:52:41 -04:00
parent 69c1250961
commit 94d0cfeb4d
3 changed files with 7 additions and 5 deletions

View File

@@ -308,7 +308,7 @@ async function handle_download_export__obj_type(
log_lvl?: number
}
) {
console.log('*** stores_event_api.js: get_sponsorship_export() ***');
console.log('*** ae_core_functions.js: handle_download_export__obj_type() ***');
const endpoint = `/v2/crud/${get_obj_type}/list`;
params['for_obj_type'] = for_obj_type;
@@ -319,6 +319,8 @@ async function handle_download_export__obj_type(
}
params['return_file'] = true;
params['mdl_alt'] = 'out';
// let clean_filename = filename.replace(/[^a-z0-9]/gi, '_');
// let clean_filename = filename.replace(/[^a-z0-9\[\]-]/gi, '_');
let clean_filename = filename.replace(/[^a-zA-Z0-9\[\]-_.]/gi, '_');