Revision a590a651
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
1420 | 1420 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1421 | 1421 |
$form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; |
1422 | 1422 |
$form->{addition} = "DELETED"; |
1423 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1423 |
$form->save_history; |
|
1424 | 1424 |
} |
1425 | 1425 |
# /saving the history |
1426 | 1426 |
$form->redirect($locale->text('Transaction deleted!')) |
... | ... | |
1578 | 1578 |
$form->{snumbers} = qq|ordnumber_| . $form->{ordnumber}; |
1579 | 1579 |
$form->{addition} = "SAVED"; |
1580 | 1580 |
$form->{what_done} = $locale->text("Buchungsnummer") . " = " . $form->{id}; |
1581 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1581 |
$form->save_history; |
|
1582 | 1582 |
} |
1583 | 1583 |
# /saving the history |
1584 | 1584 |
|
... | ... | |
1646 | 1646 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1647 | 1647 |
$form->{snumbers} = "ordnumber_$form->{ordnumber}"; |
1648 | 1648 |
$form->{addition} = "STORNO"; |
1649 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1649 |
$form->save_history; |
|
1650 | 1650 |
} |
1651 | 1651 |
# /saving the history |
1652 | 1652 |
|
Auch abrufbar als: Unified diff
save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.