Skip to content

Commit

Permalink
Use Order#email to show the order's email in new admin
Browse files Browse the repository at this point in the history
`spree_orders` table has the column `email` which stores the email of
guest orders or users email for non guest orders. We should use
that in the new admin to display the email so that guest orders work
as well.

(cherry picked from commit 93abf41)
  • Loading branch information
softr8 authored and tvdeyen committed Dec 4, 2024
1 parent 2b5ddb9 commit 87b5c24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def customer_column
class_name: "w-[400px]",
header: :customer,
data: ->(order) do
customer_email = order.user&.email
customer_email = order.email
content_tag :div, String(customer_email)
end
}
Expand Down

0 comments on commit 87b5c24

Please sign in to comment.