From f5b13074ae7356ed59a529ace1ccd76c5b4e49c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sat, 20 Aug 2016 12:28:30 +0200 Subject: [PATCH] new_lastmtime mit $provided_dbh aufrufen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fix für #204 --- SL/IS.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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//; -- 2.20.1