From da4b17d1f278f7b8eeb0d6e2f59ca921425f7554 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 31 May 2011 11:01:17 +0200 Subject: [PATCH] previousform in Session speichern Teil 2 (bei Erzeugnis-Einzelteilliste) --- bin/mozilla/ic.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 61f44ca1a..2976a4985 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1612,9 +1612,9 @@ sub assembly_row { map { delete $form->{$_} } qw(action header); # save form variables in a previousform variable - $previousform = $form->escape($form->escape(join '&', map { - sprintf "%s=%s", Q($_), /^listprice|lastcost|sellprice$/ ? $form->format_amount(\%myconfig, $form->{$_}) : $form->{$_} - } grep { ref $form->{$_} eq '' && $form->{$_} } grep { !/^select/ } sort keys %$form )); + my %form_to_save = map { ($_ => m/^ (?: listprice | sellprice | lastcost ) $/x ? $form->format_amount(\%myconfig, $form->{$_}) : $form->{$_}) } + keys %{ $form }; + $previousform = $::auth->save_form_in_session(form => \%form_to_save); $form->{callback} = $callback; $form->{assemblytotal} = 0; -- 2.20.1