Skip to content

Commit

Permalink
CDC #321 - Fixing a bug that occurs in the export process when a user…
Browse files Browse the repository at this point in the history
…_defined value is nil
  • Loading branch information
dleadbetter committed Dec 13, 2024
1 parent 5beac7b commit ee7df71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/core_data_connector/export/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def to_export_csv(user_defined_fields)
private

def add_user_defined_fields(hash, user_defined_fields)
return unless user_defined_fields.present? && self.respond_to?(:user_defined)
return unless user_defined_fields.present? && self.respond_to?(:user_defined) && self.user_defined.present?

user_defined_fields.each do |user_defined_field|
key = ImportAnalyze::Helper.uuid_to_column_name(user_defined_field.uuid)
Expand Down

0 comments on commit ee7df71

Please sign in to comment.