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:
ae6b99b
)
AP: single-dbh disconnects
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 8 Sep 2016 14:48:14 +0000
(16:48 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 8 Sep 2016 14:48:14 +0000
(16:48 +0200)
SL/AP.pm
patch
|
blob
|
history
diff --git
a/SL/AP.pm
b/SL/AP.pm
index
6de1b15
..
5839fb5
100644
(file)
--- a/
SL/AP.pm
+++ b/
SL/AP.pm
@@
-565,7
+565,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(" .
@@
-574,8
+574,6
@@
sub get_transdate {
" current_date)";
($form->{transdate}) = $dbh->selectrow_array($query);
- $dbh->disconnect;
-
$main::lxdebug->leave_sub();
}