projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f44fd6
)
AR: single-dbh disconnects
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 8 Sep 2016 14:48:25 +0000
(16:48 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 8 Sep 2016 14:48:25 +0000
(16:48 +0200)
SL/AR.pm
patch
|
blob
|
history
diff --git
a/SL/AR.pm
b/SL/AR.pm
index
3b795d4
..
b4b6867
100644
(file)
--- a/
SL/AR.pm
+++ b/
SL/AR.pm
@@
-657,7
+657,7
@@
sub get_transdate {
my ($self, $myconfig, $form) = @_;
# connect to database
- my $dbh =
$form->dbconnect($myconfig)
;
+ my $dbh =
SL::DB->client->dbh
;
my $query =
"SELECT COALESCE(" .
@@
-666,8
+666,6
@@
sub get_transdate {
" current_date)";
($form->{transdate}) = $dbh->selectrow_array($query);
- $dbh->disconnect;
-
$main::lxdebug->leave_sub();
}