From 238afb7ac42c0f624bb9d8e7bdad977dc81c1166 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 9 Jul 2007 12:48:32 +0000 Subject: [PATCH] Beim Verschicken von Emails aus oe.pl heraus immer vorher speichern, weil nach dem Verschicken das Formular via 'edit' aufgerufen wird. 'edit' wiederum holt sich die Daten aus der Datenbank. --- bin/mozilla/oe.pl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 68a183a1c..cb55f0714 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -2606,18 +2606,16 @@ sub e_mail { $form->{print_and_save} = 1; - if (!$form->{id}) { - $print_post = 1; + $print_post = 1; - my $saved_form = save_form(); + my $saved_form = save_form(); - save(); + save(); - my %saved_vars; - map({ $saved_vars{$_} = $form->{$_}; } qw(id ordnumber quonumber)); - restore_form($saved_form); - map({ $form->{$_} = $saved_vars{$_}; } qw(id ordnumber quonumber)); - } + my %saved_vars; + map({ $saved_vars{$_} = $form->{$_}; } qw(id ordnumber quonumber)); + restore_form($saved_form); + map({ $form->{$_} = $saved_vars{$_}; } qw(id ordnumber quonumber)); edit_e_mail(); -- 2.20.1