Skip to content

Commit

Permalink
Applied fix for #796 provided by g011um.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Oct 11, 2024
1 parent cb7772b commit c1f6cd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workbench_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ def create(self, config, field_definitions, entity, row, field_name):
if field_definitions[field_name]["target_type"] == "media":
target_type = "media_type"

if field_definitions[field_name]["target_type"] == "domain":
target_type = "domain"

field_values = []
subvalues = str(row[field_name]).split(config["subdelimiter"])
subvalues = self.dedupe_values(subvalues)
Expand Down Expand Up @@ -903,6 +906,9 @@ def update(
if field_definitions[field_name]["target_type"] == "media":
target_type = "media_type"

if field_definitions[field_name]["target_type"] == "domain":
target_type = "domain"

cardinality = int(field_definitions[field_name].get("cardinality", -1))
if config["update_mode"] == "replace":
field_values = []
Expand Down

0 comments on commit c1f6cd4

Please sign in to comment.