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:
c753e0a
)
$form->get_standard_dbh() benutzen für verbesserte Geschwindigkeit
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 5 Jul 2007 09:30:33 +0000
(09:30 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 5 Jul 2007 09:30:33 +0000
(09:30 +0000)
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
e7f1327
..
f69e98c
100644
(file)
--- a/
SL/IC.pm
+++ b/
SL/IC.pm
@@
-1538,7
+1538,7
@@
sub retrieve_accounts {
$form->{"taxzone_id"} *= 1;
- $dbh = $form->
dbconnect
($myconfig);
+ $dbh = $form->
get_standard_dbh
($myconfig);
my $transdate = "";
if ($form->{type} eq "invoice") {
@@
-1576,10
+1576,7
@@
sub retrieve_accounts {
qq|WHERE p.id = ?|;
my $ref = selectfirst_hashref_query($form, $dbh, $query, $parts_id);
- if (!$ref) {
- $dbh->disconnect();
- return $main::lxdebug->leave_sub(2);
- }
+ return $main::lxdebug->leave_sub(2) if (!$ref);
$ref->{"inventory_accno_id"} = undef unless ($ref->{"is_part"});