My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
16
attachment: mail-send-fails.patch
(846 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: plugins/substruct/app/views/orders_mailer/_order.rhtml
===================================================================
--- plugins/substruct/app/views/orders_mailer/_order.rhtml (revision 43)
+++ plugins/substruct/app/views/orders_mailer/_order.rhtml (working copy)
@@ -23,7 +23,7 @@
Country: <%= @order.shipping_address.country.name %>
------------------------------------------------------------
Email: <%= @order.order_user.email_address %>
-<% if @order.account.cc_number.length > 16 || @order.account.cc_number == 'XXXXXXXXX0000' %>
+<% if@order.account.cc_number.nil? || @order.account.cc_number.length > 16 || @order.account.cc_number == 'XXXXXXXXX0000' %>
(No credit card number on file)
<% elsif @order.account.order_account_type_id == OrderAccount::TYPES['Credit Card'] %>
CC Number: <%= @order.account.cc_number %>
Powered by
Google Project Hosting