From: Moritz Bunkus Date: Tue, 31 May 2011 09:01:17 +0000 (+0200) Subject: previousform in Session speichern Teil 2 (bei Erzeugnis-Einzelteilliste) X-Git-Tag: release-2.6.3~25^2~6 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=da4b17d1f278f7b8eeb0d6e2f59ca921425f7554;p=kivitendo-erp.git previousform in Session speichern Teil 2 (bei Erzeugnis-Einzelteilliste) --- 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;