summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 05:53:11 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-14 05:53:11 +0000
commit7309cf796a50c8bc0b9ad5e5896863ed822aa20a (patch)
treed01789d83743485009e11ed83ed0be65114a669a /LedgerSMB
parenta32826fb3d58639957c825096de435d617addb05 (diff)
Fixing many accidental disconnects.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@583 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 1985842d..7125ce7e 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1809,8 +1809,6 @@ sub all_taxaccounts {
my ($self, $myconfig, $dbh2, $transdate) = @_;
- my $disconnect = ($dbh) ? 0 : 1;
-
my $dbh = $self->{dbh};
my $sth;
@@ -2701,10 +2699,7 @@ sub save_recurring {
}
}
- if ($disconnect) {
- $dbh->commit;
- $dbh->disconnect;
- }
+ $dbh->commit;
}
@@ -3012,8 +3007,7 @@ sub audittrail {
my $disconnect;
if (! $dbh) {
- $dbh = $self->dbconnect($myconfig);
- $disconnect = 1;
+ $dbh = $self->{dbh};
}
# if we have an id add audittrail, otherwise get a new timestamp