Created
December 16, 2021 07:41
-
-
Save ichaykin/9ddbf6b8e93f5b42879dfe5de6dd91e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/Tygh/Shippings/Shippings.php b/app/Tygh/Shippings/Shippings.php | |
index 6679c67574..8dc3f50854 100644 | |
--- a/app/Tygh/Shippings/Shippings.php | |
+++ b/app/Tygh/Shippings/Shippings.php | |
@@ -64,7 +64,7 @@ class Shippings | |
fn_set_hook('shippings_group_products_list', $products, $groups); | |
foreach ($groups as $key_group => $group) { | |
- $groups[$key_group]['group_key'] = $group['company_id']; | |
+ $groups[$key_group]['group_key'] = !empty($group['group_key']) ? $group['group_key'] : $group['company_id']; | |
$groups[$key_group]['package_info'] = self::_getPackageInfo($group); | |
$groups[$key_group]['package_info_full'] = self::_getPackageInfo($group, true); | |
unset($groups[$key_group]['origination']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment