Skip to content

Commit

Permalink
have csv import based on field_name for custom fields not label
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Oct 17, 2024
1 parent 3379e3c commit c66518a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spotlight/resources/upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def sidecar_update_data
end

def custom_fields_data
data.slice(*exhibit.custom_fields.map(&:slug).map(&:to_s)).compact_blank
data.slice(*exhibit.custom_fields.map(&:field).map(&:to_s)).compact_blank
end

def configured_fields_data
Expand Down

0 comments on commit c66518a

Please sign in to comment.