Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1098681
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
Thu, Aug 14, 4:24 AM
Size
749 B
Mime Type
text/x-diff
Expires
Fri, Aug 15, 4:24 AM (2 h, 13 m)
Engine
blob
Format
Raw Data
Handle
711286
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