diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-13 01:47:52 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-13 01:47:52 +0000 |
commit | 1535312181520fa2fa182860476ecc6e0486f40f (patch) | |
tree | a57347a02c0563b38687c19cbd75056ee9e8016b /LedgerSMB/AM.pm | |
parent | c41d0a434606332cc7dd1a1e81f4dcaeea590896 (diff) |
Lots more dbconnects removed
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@541 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/AM.pm')
-rwxr-xr-x | LedgerSMB/AM.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm index 351b0ae0..6d72df56 100755 --- a/LedgerSMB/AM.pm +++ b/LedgerSMB/AM.pm @@ -675,7 +675,7 @@ sub get_business { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect($myconfig); + my $dbh = $form->{dbh}; my $query = qq| SELECT description, discount @@ -695,7 +695,7 @@ sub save_business { my ($self, $myconfig, $form) = @_; # connect to database - my $dbh = $form->dbconnect($myconfig); + my $dbh = $form->{dbh}; $form->{description} =~ s/-(-)+/-/g; $form->{description} =~ s/ ( )+/ /g; |