projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9f5cf41
)
Shopware6: Bessere Fehlermeldung, falls es im Frontend aufschlägt
author
Jan Büren
<jan@kivitendo.de>
Tue, 15 Feb 2022 10:05:17 +0000
(11:05 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Tue, 15 Feb 2022 10:05:17 +0000
(11:05 +0100)
SL/ShopConnector/Shopware6.pm
patch
|
blob
|
history
diff --git
a/SL/ShopConnector/Shopware6.pm
b/SL/ShopConnector/Shopware6.pm
index
27c569a
..
f8a22a9
100644
(file)
--- 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) = @_;
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();
my $ret;
$ret = $self->connector->POST("/api/_action/order/$order_id/state/$transition");
my $response_code = $ret->responseCode();