From: Jan Büren Date: Sat, 20 Aug 2016 10:28:30 +0000 (+0200) Subject: new_lastmtime mit $provided_dbh aufrufen X-Git-Tag: release-3.5.4~2122 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f5b13074ae7356ed59a529ace1ccd76c5b4e49c9;p=kivitendo-erp.git new_lastmtime mit $provided_dbh aufrufen fix für #204 --- diff --git a/SL/IS.pm b/SL/IS.pm index d7ba6b563..a05f25e3d 100644 --- 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//;