From 82c73412d61d712b1aa2b061d923d4bcf6ebaa39 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 14 Jan 2025 12:03:51 -0400 Subject: [PATCH 1/2] Add name fields to update_terms. --- workbench | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/workbench b/workbench index c796eb6..db31e62 100755 --- a/workbench +++ b/workbench @@ -3307,7 +3307,20 @@ def update_terms(): term_field_values[custom_field], ) - # For non-entity reference and non-typed relation fields (text, etc.). + # Name fields. + elif field_definitions[custom_field]["field_type"] == "name": + link_field = workbench_fields.NameField() + term = link_field.update( + config, + field_definitions, + term, + row, + custom_field, + term_field_values[custom_field], + ) + + + # For non-entity reference and non-typed relation fields (text, etc.). else: simple_field = workbench_fields.SimpleField() term = simple_field.update( From fb8c20d6c2e3e7d51e502c7e380f782463ebc5ff Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 14 Jan 2025 12:06:17 -0400 Subject: [PATCH 2/2] Formatting. --- workbench | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/workbench b/workbench index db31e62..cc18e5b 100755 --- a/workbench +++ b/workbench @@ -342,7 +342,8 @@ def create(): node = link_field.create( config, field_definitions, node, row, custom_field ) - # name fields. + + # Name fields. elif field_definitions[custom_field]["field_type"] == "name": name_field = workbench_fields.NameField() node = name_field.create( @@ -845,6 +846,8 @@ def update(): custom_field, node_field_values[custom_field], ) + + # Name fields. elif field_definitions[custom_field]["field_type"] == "name": name_field = workbench_fields.NameField() node = name_field.update( @@ -3319,8 +3322,7 @@ def update_terms(): term_field_values[custom_field], ) - - # For non-entity reference and non-typed relation fields (text, etc.). + # For non-entity reference and non-typed relation fields (text, etc.). else: simple_field = workbench_fields.SimpleField() term = simple_field.update(