Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847900
D239.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
Sat, Apr 19, 7:40 PM
Size
734 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 7:40 PM (55 m, 58 s)
Engine
blob
Format
Raw Data
Handle
602681
Attached To
D239: MINC-177 - Don't send "ORDER.SHIP" email, when email address is missing
D239.diff
View Options
Index: branches/5.2.x/units/orders/orders_event_handler.php
===================================================================
--- branches/5.2.x/units/orders/orders_event_handler.php
+++ branches/5.2.x/units/orders/orders_event_handler.php
@@ -2219,7 +2219,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