From: Jan Büren Date: Wed, 9 Feb 2022 07:50:19 +0000 (+0100) Subject: shopware6: Bei der Produkt-Kategorie-Zuordnung nur die Blätter löschen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~218^2~9 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=de17d33a5bde24a0d553a34b8a1406de28fcd9d9;p=kivitendo-erp.git shopware6: Bei der Produkt-Kategorie-Zuordnung nur die Blätter löschen --- diff --git a/SL/ShopConnector/Shopware6.pm b/SL/ShopConnector/Shopware6.pm index a95107de7..9944b33d9 100644 --- a/SL/ShopConnector/Shopware6.pm +++ b/SL/ShopConnector/Shopware6.pm @@ -265,7 +265,7 @@ sub sync_all_categories { my ($product_id, $category_tree); try { $product_id = from_json($ret->responseContent())->{data}->[0]->{id}; - $category_tree = from_json($ret->responseContent())->{data}->[0]->{categoryTree}; + $category_tree = from_json($ret->responseContent())->{data}->[0]->{categoryIds}; } catch { die "Malformed JSON Data: $_ " . $ret->responseContent(); }; my $cat; # if the part is connected to a category at all