Page MenuHomeIn-Portal Phabricator

D239.id589.diff
No OneTemporary

File Metadata

Created
Thu, Aug 14, 4:24 AM

D239.id589.diff

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