From 3dc2935c3cf31e5350f8acd83c3c67941a6a0dba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 15 May 2009 10:05:56 +0000 Subject: [PATCH] Und nochmal anders: Previous Form nur die Werte speichern, die SCALAR und nicht leer sind. Damit dann auch wieder die previousform Funktion in assembly_row->part --- bin/mozilla/ic.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index d7dd7c3fa..05aaced0d 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1540,6 +1540,7 @@ sub assembly_row { # save form variables in a previousform variable foreach my $key (sort keys %$form) { + next unless ref $form->{$key} eq '' && $form->{$key}; # escape ampersands $form->{$key} =~ s/&/%26/g; @@ -1642,7 +1643,7 @@ sub assembly_row { } else { $href = - qq|$form->{script}?action=edit&id=$form->{"id_$i"}|; + qq|$form->{script}?action=edit&id=$form->{"id_$i"}&rowcount=$i&previousform=$previousform|; $column_data{partnumber} = qq|$form->{"partnumber_$i"}|; $column_data{runningnumber} = -- 2.20.1