From d40a8e202ca38008031a0cb882f5c3ae1c58fce8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 4 Feb 2015 18:25:01 +0100 Subject: [PATCH] =?utf8?q?Neuen=20Auftrag=20aus=20Mehrfachauswahl=20nicht?= =?utf8?q?=20verkn=C3=BCpfen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Das Verhalten bei nur einer Auswahl entspricht dem Editieren. Auch hier soll nicht verknüpft werden. --- SL/OE.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/OE.pm b/SL/OE.pm index 6a46fecfd..870673a5c 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -674,7 +674,7 @@ SQL delete $form->{convert_from_oe_ids}; @{ $form->{convert_from_oe_ids} } = @convert_from_oe_ids; foreach (qw(ar oe)) { - if ($form->{"convert_from_${_}_ids"}) { + if (!$form->{useasnew} && $form->{"convert_from_${_}_ids"}) { RecordLinks->create_links('dbh' => $dbh, 'mode' => 'ids', 'from_table' => $_, @@ -836,6 +836,7 @@ sub retrieve { if ($form->{"rowcount"} and $#ids == 0) { $form->{"id"} = $ids[0]; undef @ids; + delete $form->{convert_from_oe_ids}; } # and remember for the rest of the function -- 2.20.1