X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5cfd34f0459bf58cee93d28a2cbe7e9f2684d1ca..ffea1346a870187033520ea5be4a121574802e7f:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index ce9e76081..627a51dc4 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -1621,11 +1621,20 @@ sub yes { sub e_mail { $lxdebug->enter_sub(); - $print_post = 1; + if (!$form->{id}) { + $print_post = 1; - &post; + my $saved_form = save_form(); - &edit_e_mail; + post(); + + my %saved_vars; + map({ $saved_vars{$_} = $form->{$_}; } qw(id invnumber)); + restore_form($saved_form); + map({ $form->{$_} = $saved_vars{$_}; } qw(id invnumber)); + } + + edit_e_mail(); $lxdebug->leave_sub(); }