From 5b3d7427b3d3df79c2342850d859bd6535dfd15e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Sun, 6 Feb 2022 22:45:52 +0100 Subject: [PATCH] DeliveryOrder: bei fehlerhaftem Auslagern sofort abbrechen --- SL/Controller/DeliveryOrder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/DeliveryOrder.pm b/SL/Controller/DeliveryOrder.pm index 8f3d838c8..fc25fc019 100644 --- a/SL/Controller/DeliveryOrder.pm +++ b/SL/Controller/DeliveryOrder.pm @@ -1069,7 +1069,7 @@ sub action_transfer_stock { } if (!@transfer_requests) { - $self->js->flash("error", t8("No stock to transfer"))->render; + return $self->js->flash("error", t8("No stock to transfer"))->render; } SL::DB->client->with_transaction(sub { -- 2.20.1