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:
573d7fd
)
new_lastmtime mit $provided_dbh aufrufen
author
Jan Büren
<jan@kivitendo-premium.de>
Sat, 20 Aug 2016 10:28:30 +0000
(12:28 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Sat, 20 Aug 2016 10:28:30 +0000
(12:28 +0200)
fix für #204
SL/IS.pm
patch
|
blob
|
history
diff --git
a/SL/IS.pm
b/SL/IS.pm
index
d7ba6b5
..
a05f25e
100644
(file)
--- a/
SL/IS.pm
+++ b/
SL/IS.pm
@@
-1312,7
+1312,10
@@
SQL
do_query($form, $dbh, qq|UPDATE ar SET paid = amount WHERE id = ?|, conv_i($form->{"id"}));
}
- $form->new_lastmtime('ar');
+ # maybe we are in a larger transaction and the current
+ # object is not yet persistent in the db, therefore we
+ # need the current dbh to get the not yet committed mtime
+ $form->new_lastmtime('ar', $provided_dbh);
$form->{name} = $form->{customer};
$form->{name} =~ s/--\Q$form->{customer_id}\E//;