modified visual id header
test for name, firstname and email or put ''
MODIFY
src/server/rest/v1/service/TagService.ts
src/server/rest/v1/service/TagService.ts
@@ -775,9 +775,9 @@ export default class TagService {
id: importedTag.id.toUpperCase(),
visualID: importedTag.visualID,
description: importedTag.description ? importedTag.description : `Badge ID '${importedTag.id}'`,
- name: importedTag.name.toUpperCase(),
- firstName: importedTag.firstName,
- email: importedTag.email,
+ name: importedTag.name?.toUpperCase() || '',
+ firstName: importedTag.firstName || '',
+ email: importedTag.email || '',
};
// Validate Tag data
TagValidator.getInstance().validateImportedTagCreation(newImportedTag);

modified visual id header
test for name, firstname and email or put ''