Revision a590a651
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
90 | 90 |
if(!exists $form->{addition} && ($form->{id} ne "")) { |
91 | 91 |
$form->{snumbers} = qq|invnumber_| . $form->{invnumber}; |
92 | 92 |
$form->{addition} = "ADDED"; |
93 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
93 |
$form->save_history; |
|
94 | 94 |
} |
95 | 95 |
# /saving the history |
96 | 96 |
|
... | ... | |
1140 | 1140 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1141 | 1141 |
$form->{snumbers} = "invnumber_$form->{invnumber}"; |
1142 | 1142 |
$form->{addition} = "POSTED"; |
1143 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1143 |
$form->save_history; |
|
1144 | 1144 |
} |
1145 | 1145 |
# /saving the history |
1146 | 1146 |
remove_draft() if $form->{remove_draft}; |
... | ... | |
1163 | 1163 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1164 | 1164 |
$form->{snumbers} = qq|invnumber_| . $form->{invnumber}; |
1165 | 1165 |
$form->{addition} = "POSTED AS NEW"; |
1166 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1166 |
$form->save_history; |
|
1167 | 1167 |
} |
1168 | 1168 |
# /saving the history |
1169 | 1169 |
&post; |
... | ... | |
1246 | 1246 |
if(!exists $form->{addition}) { |
1247 | 1247 |
$form->{snumbers} = qq|invnumber_| . $form->{invnumber}; |
1248 | 1248 |
$form->{addition} = "DELETED"; |
1249 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1249 |
$form->save_history; |
|
1250 | 1250 |
} |
1251 | 1251 |
# /saving the history |
1252 | 1252 |
$form->redirect($locale->text('Transaction deleted!')); |
... | ... | |
1520 | 1520 |
if(!exists $form->{addition} && $form->{id} ne "") { |
1521 | 1521 |
$form->{snumbers} = "ordnumber_$form->{ordnumber}"; |
1522 | 1522 |
$form->{addition} = "STORNO"; |
1523 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1523 |
$form->save_history; |
|
1524 | 1524 |
} |
1525 | 1525 |
# /saving the history |
1526 | 1526 |
|
Auch abrufbar als: Unified diff
save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.