Revision a590a651
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1783 | 1783 |
if(!exists $form->{addition}) { |
1784 | 1784 |
$form->{snumbers} = qq|partnumber_| . $form->{partnumber}; |
1785 | 1785 |
$form->{addition} = "SAVED"; |
1786 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1786 |
$form->save_history; |
|
1787 | 1787 |
} |
1788 | 1788 |
# /saving the history |
1789 | 1789 |
$parts_id = $form->{id}; |
... | ... | |
1916 | 1916 |
if(!exists $form->{addition}) { |
1917 | 1917 |
$form->{snumbers} = qq|partnumber_| . $form->{partnumber}; |
1918 | 1918 |
$form->{addition} = "SAVED AS NEW"; |
1919 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1919 |
$form->save_history; |
|
1920 | 1920 |
} |
1921 | 1921 |
# /saving the history |
1922 | 1922 |
$form->{id} = 0; |
... | ... | |
1937 | 1937 |
if(!exists $form->{addition}) { |
1938 | 1938 |
$form->{snumbers} = qq|partnumber_| . $form->{partnumber}; |
1939 | 1939 |
$form->{addition} = "DELETED"; |
1940 |
$form->save_history($form->dbconnect(\%myconfig));
|
|
1940 |
$form->save_history; |
|
1941 | 1941 |
} |
1942 | 1942 |
# /saving the history |
1943 | 1943 |
my $rc = IC->delete(\%myconfig, \%$form); |
Auch abrufbar als: Unified diff
save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.