From 0135f09ff1d60fccfd1959a65b18236dc74b457d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 6 Aug 2018 17:06:01 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20Auftrag=20aus=20DB=20mit?= =?utf8?q?=20new(id=20=3D>=20...)->load=20laden=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit und nicht mit find_by, damit ein Fehler bei nicht vorhandener id geworfen wird. --- SL/Controller/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 8e0d9ad1d..83cde80a1 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1104,7 +1104,7 @@ sub _load_order { return if !$::form->{id}; - $self->order(SL::DB::Manager::Order->find_by(id => $::form->{id})); + $self->order(SL::DB::Order->new(id => $::form->{id})->load); } # load or create a new order object -- 2.20.1