Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727101
D164.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
Mon, Jan 6, 6:48 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Jan 7, 6:48 AM (3 d, 59 m ago)
Engine
blob
Format
Raw Data
Handle
537163
Attached To
D164: MINC-135 - Use shipping type from Order, when editing in Admin Console
D164.diff
View Options
Index: branches/5.2.x/units/shipping/shipping_tag_processor.php
===================================================================
--- branches/5.2.x/units/shipping/shipping_tag_processor.php
+++ branches/5.2.x/units/shipping/shipping_tag_processor.php
@@ -235,9 +235,14 @@
{
$original_shipping = $original_shipping[$package_id];
$key = $original_shipping['ShippingId'];
- $shipping_types[$key]['TotalCost'] = $this->Application->isAdminUser ? $original_shipping['TotalCost'] : $shipping_types[$key]['TotalCost'];
- $shipping_types[$key]['ShippingName'] = $this->Application->isAdminUser ? 'Original: '.$original_shipping['ShippingName'] : $shipping_types[$key]['ShippingName'];
- $shipping_types[$key]['ShippingId'] = $key;
+
+ // When changing shipping type (via dropdown), then prefer current order's actual
+ // shipping info over one from Shipping Quote Engines.
+ if ( $this->Application->isAdminUser ) {
+ $shipping_types[$key] = $original_shipping;
+ $shipping_types[$key]['ShippingName'] = 'Original: ' . $original_shipping['ShippingName'];
+ }
+
$selected_id = $key;
}
Event Timeline
Log In to Comment