From: Jan Büren Date: Tue, 15 Feb 2022 10:05:17 +0000 (+0100) Subject: Shopware6: Bessere Fehlermeldung, falls es im Frontend aufschlägt X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~214 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fe8d8d4ff6102dbb02d456b45256697099beaa63;p=kivitendo-erp.git Shopware6: Bessere Fehlermeldung, falls es im Frontend aufschlägt --- diff --git a/SL/ShopConnector/Shopware6.pm b/SL/ShopConnector/Shopware6.pm index 27c569aa6..f8a22a911 100644 --- a/SL/ShopConnector/Shopware6.pm +++ b/SL/ShopConnector/Shopware6.pm @@ -701,8 +701,8 @@ sub get_version { sub set_orderstatus { my ($self, $order_id, $transition) = @_; - croak "No order ID, should be in format [0-9a-f]{32}" unless $order_id =~ m/^[0-9a-f]{32}$/; - croak "NO valid transition value" unless $transition =~ m/(open|process|cancel|complete)/; + croak "No shop order ID, should be in format [0-9a-f]{32}" unless $order_id =~ m/^[0-9a-f]{32}$/; + croak "NO valid transition value" unless $transition =~ m/(open|process|cancel|complete)/; my $ret; $ret = $self->connector->POST("/api/_action/order/$order_id/state/$transition"); my $response_code = $ret->responseCode();