Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1173567
D239.id589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Oct 1, 10:20 AM
Size
749 B
Mime Type
text/x-diff
Expires
Thu, Oct 2, 10:20 AM (21 h, 43 m)
Engine
blob
Format
Raw Data
Handle
760753
Attached To
D239: MINC-177 - Don't send "ORDER.SHIP" email, when email address is missing
D239.id589.diff
View Options
Index: modules/in-commerce/units/orders/orders_event_handler.php
===================================================================
--- modules/in-commerce/units/orders/orders_event_handler.php
+++ modules/in-commerce/units/orders/orders_event_handler.php
@@ -2212,7 +2212,10 @@
$shipping_email = $object->GetDBField('ShippingEmail');
$email_params['to_email'] = $shipping_email ? $shipping_email : $email_params['_user_email'];
- $this->Application->emailUser('ORDER.SHIP', null, $email_params);
+
+ if ( strlen($email_params['to_email']) ) {
+ $this->Application->emailUser('ORDER.SHIP', null, $email_params);
+ }
// inform payment gateway that order was shipped
$gw_data = $object->getGatewayData();
Event Timeline
Log In to Comment