--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -1241,8 +1241,9 @@
self.app.globals.closed_status_names=post_data['closed_status_names']
custom_fields = post_data.get('custom_fields', [])
for field in custom_fields:
- field['name'] = '_' + '_'.join([
- w for w in NONALNUM_RE.split(field['label'].lower()) if w])
+ if 'name' not in field or not field['name']:
+ field['name'] = '_' + '_'.join([
+ w for w in NONALNUM_RE.split(field['label'].lower()) if w])
if field['type'] == 'milestone':
field.setdefault('milestones', [])