Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1170101
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
Sat, Sep 27, 12:08 AM
Size
814 B
Mime Type
text/x-diff
Expires
Sun, Sep 28, 12:08 AM (15 h, 3 m)
Engine
blob
Format
Raw Data
Handle
758199
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