Skip to content

Commit c953b42

Browse files
committed
make warnings display as errors when partner import hits both errors and warnings
1 parent 0b7e9a8 commit c953b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/partner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def self.import_csv(csv, organization_id)
113113
if svc.errors.present? && svc.partner.errors.blank?
114114
warnings << "#{svc.partner.name}: #{svc.errors.full_messages.to_sentence}"
115115
elsif svc.errors.present?
116-
errors << "#{svc.partner.name}: #{svc.partner.errors.full_messages.to_sentence}"
116+
errors << "#{svc.partner.name}: #{svc.errors.full_messages.to_sentence}"
117117
end
118118
end
119119
[errors, warnings]

0 commit comments

Comments
 (0)