X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/9d17d16c39e6514243ee1ee71e9be8502331e0f2..3bb3a4a56b0be39fd60f011137ffbadd9dba3fd7:/SL/FU.pm diff --git a/SL/FU.pm b/SL/FU.pm index b98687f3e..8a2f2698a 100644 --- a/SL/FU.pm +++ b/SL/FU.pm @@ -81,7 +81,8 @@ sub finish { SL::DB->client->with_transaction(sub { do_query($form, SL::DB->client->dbh, qq|UPDATE follow_ups SET done = TRUE WHERE id = ?|, conv_i($params{id})); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); } @@ -105,7 +106,8 @@ sub delete { do_query($form, $dbh, qq|DELETE FROM follow_up_links WHERE follow_up_id = ?|, $id); do_query($form, $dbh, qq|DELETE FROM follow_ups WHERE id = ?|, $id); do_query($form, $dbh, qq|DELETE FROM notes WHERE (trans_id = ?) AND (trans_module = 'fu')|, $id); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); } @@ -444,7 +446,8 @@ sub save_access_rights { } $sth->finish(); - }); + 1; + }) or do { die SL::DB->client->error }; $main::lxdebug->leave_sub(); }