Revision a590a651
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
721 | 721 |
$form->{addition} = $form->{print_and_post} ? "PRINTED AND POSTED" : |
722 | 722 |
$form->{storno} ? "STORNO" : |
723 | 723 |
"POSTED"; |
724 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
724 |
$form->save_history; |
|
725 | 725 |
} |
726 | 726 |
|
727 | 727 |
if (!$form->{no_redirect_after_post}) { |
... | ... | |
942 | 942 |
if(!exists $form->{addition}) { |
943 | 943 |
$form->{snumbers} = qq|invnumber_| . $form->{invnumber}; |
944 | 944 |
$form->{addition} = "DELETED"; |
945 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
945 |
$form->save_history; |
|
946 | 946 |
} |
947 | 947 |
# /saving the history |
948 | 948 |
$form->redirect($locale->text('Invoice deleted!')); |
Auch abrufbar als: Unified diff
save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.