projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba387a
)
get_article, um Rückgabewert erweitert, falls kein Produkt gefunden wurde
author
Jan Büren
<jan@kivitendo.de>
Fri, 19 Nov 2021 10:03:58 +0000
(11:03 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Fri, 11 Feb 2022 14:19:56 +0000
(15:19 +0100)
SL/ShopConnector/Shopware6.pm
patch
|
blob
|
history
diff --git
a/SL/ShopConnector/Shopware6.pm
b/SL/ShopConnector/Shopware6.pm
index
e065176
..
b9d80ef
100644
(file)
--- a/
SL/ShopConnector/Shopware6.pm
+++ b/
SL/ShopConnector/Shopware6.pm
@@
-581,6
+581,9
@@
sub get_article {
} catch {
die "Malformed JSON Data: $_ " . $ret->responseContent();
};
+
+ # maybe no product was found ...
+ return undef unless scalar @{ $data_json->{data} } > 0;
# caller wants this structure:
# $stock_onlineshop = $shop_article->{data}->{mainDetail}->{inStock};
# $active_online = $shop_article->{data}->{active};