Skip to content

Instantly share code, notes, and snippets.

@MrAlejandro
Last active July 13, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrAlejandro/b0f146ce6dfa0d0a70ecbf0dfb0ca0c9 to your computer and use it in GitHub Desktop.
Save MrAlejandro/b0f146ce6dfa0d0a70ecbf0dfb0ca0c9 to your computer and use it in GitHub Desktop.
Advanced import features import fix
diff --git a/app/addons/advanced_import/func.php b/app/addons/advanced_import/func.php
index 579a6cc464..75278f58a1 100644
--- a/app/addons/advanced_import/func.php
+++ b/app/addons/advanced_import/func.php
@@ -99,12 +99,12 @@ function fn_advanced_import_set_product_features($product_id, $features_list, $v
'feature_id',
$missing_features
);
+ }
- foreach ($features_list as $feature_id => &$feature) {
- $feature = array_merge($feature, $features_cache[$feature_id]);
- }
- unset($feature);
+ foreach ($features_list as $feature_id => &$feature) {
+ $feature = array_merge($feature, $features_cache[$feature_id]);
}
+ unset($feature);
if ($features_list) {
fn_exim_save_product_features_values($product_id, $features_list, $main_lang);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment