Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804035
D186.id437.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
Wed, Feb 26, 9:04 AM
Size
915 B
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:04 AM (4 h, 36 m)
Engine
blob
Format
Raw Data
Handle
576749
Attached To
D186: Remove excessive "dest_country" conversion in Shipping Quotes Engine
D186.id437.diff
View Options
Index: modules/in-commerce/units/shipping_quote_engines/shipping_quote_collector.php
===================================================================
--- modules/in-commerce/units/shipping_quote_engines/shipping_quote_collector.php
+++ modules/in-commerce/units/shipping_quote_engines/shipping_quote_collector.php
@@ -17,10 +17,9 @@
function GetShippingQuotes($params)
{
+ /** @var CountryStatesHelper $cs_helper */
$cs_helper = $this->Application->recallObject('CountryStatesHelper');
- /* @var $cs_helper kCountryStatesHelper */
-
- $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