Page MenuHomeIn-Portal Phabricator

D186.id437.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:04 AM

D186.id437.diff

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