Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed `ExportMailer`

Damian Legawiecedfdd3f4136f
diff --git a/core/app/models/spree/legacy_user.rb b/core/app/models/spree/legacy_user.rb
index 54f08a9500..53ecace142 100644
--- a/core/app/models/spree/legacy_user.rb
+++ b/core/app/models/spree/legacy_user.rb
@@ -8,6 +8,6 @@ module Spree
self.table_name = 'spree_users'
- attr_accessor :password, :password_confirmation, :firstname, :lastname
+ attr_accessor :password, :password_confirmation, :firs_tname, :last_name
end
end
diff --git a/core/app/views/spree/export_mailer/export_done.html.erb b/core/app/views/spree/export_mailer/export_done.html.erb
index 8aa6bea4bd..14cef746bb 100644
--- a/core/app/views/spree/export_mailer/export_done.html.erb
+++ b/core/app/views/spree/export_mailer/export_done.html.erb
@@ -1,5 +1,5 @@
<h1>
- <%= Spree.t('export_mailer.greeting', user_name: @export.user&.firstname) %>
+ <%= Spree.t('export_mailer.greeting', user_name: @export.user&.first_name) %>
</h1>
<p>
<%= Spree.t('export_mailer.export_done.message') %>