From e6f429e42da71c71b6416727216302a87a254fde Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 21 Feb 2007 08:28:25 +0000 Subject: [PATCH] Speichern der Historie nach Speichern des Belegs selber. --- bin/mozilla/oe.pl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 3b9e3b337..99ff0cd29 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1937,17 +1937,18 @@ sub save_and_close { } relink_accounts(); + + $form->error($err) if (!OE->save(\%myconfig, \%$form)); + # saving the history if(!exists $form->{addition}) { $form->{addition} = "SAVED"; $form->save_history($form->dbconnect(\%myconfig)); } - # /saving the history + # /saving the history - $form->redirect( - $form->{label} . " $form->{$ordnumber} " . $locale->text('saved!')) - if (OE->save(\%myconfig, \%$form)); - $form->error($err); + $form->redirect($form->{label} . " $form->{$ordnumber} " . + $locale->text('saved!')); $lxdebug->leave_sub(); } @@ -2017,6 +2018,9 @@ sub save { unless $form->{$ordnumber}; relink_accounts(); + + OE->save(\%myconfig, \%$form); + # saving the history if(!exists $form->{addition}) { $form->{addition} = "SAVED"; @@ -2024,7 +2028,6 @@ sub save { } # /saving the history - OE->save(\%myconfig, \%$form); $form->{simple_save} = 1; if(!$form->{print_and_save}) { set_headings("edit"); -- 2.20.1