Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727054
D186.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, 5:38 AM
Size
814 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 5:38 AM (3 d, 2 h ago)
Engine
blob
Format
Raw Data
Handle
537121
Attached To
D186: Remove excessive "dest_country" conversion in Shipping Quotes Engine
D186.diff
View Options
Index: branches/5.2.x/units/shipping_quote_engines/shipping_quote_collector.php
===================================================================
--- branches/5.2.x/units/shipping_quote_engines/shipping_quote_collector.php
+++ branches/5.2.x/units/shipping_quote_engines/shipping_quote_collector.php
@@ -19,8 +19,7 @@
{
/** @var kCountryStatesHelper $cs_helper */
$cs_helper = $this->Application->recallObject('CountryStatesHelper');
-
- $has_states = $cs_helper->CountryHasStates( $cs_helper->getCountryIso($params['dest_country'], true) );
+ $has_states = $cs_helper->CountryHasStates($params['dest_country']);
if (
!$params['dest_city'] || !$params['dest_country'] ||
@@ -194,4 +193,4 @@
return $elem1['TotalCost'] < $elem2['TotalCost'] ? -1 : 1;
}
-}
\ No newline at end of file
+}
Event Timeline
Log In to Comment