From: Moritz Bunkus Date: Wed, 21 Feb 2007 08:28:25 +0000 (+0000) Subject: Speichern der Historie nach Speichern des Belegs selber. X-Git-Tag: release-2.4.2~35 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e6f429e42da71c71b6416727216302a87a254fde;p=kivitendo-erp.git Speichern der Historie nach Speichern des Belegs selber. --- 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");