Beim Verschicken von Emails aus oe.pl heraus immer vorher speichern, weil nach dem...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 9 Jul 2007 12:48:32 +0000 (12:48 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 9 Jul 2007 12:48:32 +0000 (12:48 +0000)
bin/mozilla/oe.pl

index 68a183a..cb55f07 100644 (file)
@@ -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();