From fb75f507d7fcae62d9b04162bd82e3787bb271c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 2 Nov 2016 11:20:47 +0100 Subject: [PATCH] =?utf8?q?Artikel=20als=20neu=20speichern:=20Historie=20au?= =?utf8?q?ch=20f=C3=BCr=20neuen=20Artikel=20schreiben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bisher wurde nur ein Historien-Eintrag beim Original-Artikel (SAVED AS NEW) angelegt, nicht aber beim neuen Artikel. --- bin/mozilla/ic.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 702e2b0f9..84fe35186 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1302,6 +1302,10 @@ sub save_as_new { $form->save_history; } # /saving the history + + # deleting addition to get the history saved for the new part, too. + delete $form->{addition}; + $form->{id} = 0; if ($form->{"original_partnumber"} && ($form->{"partnumber"} eq $form->{"original_partnumber"})) { -- 2.20.1