From 025b58dee3b3057769d45c2fb8fdea1cdb1a64a7 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 11 Apr 2023 11:05:15 +0200 Subject: [PATCH] throw Exception when storeVertragsbestandteil is rolled back to handle rollback in possible outer transaction --- .../libraries/vertragsbestandteil/VertragsbestandteilLib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/vertragsbestandteil/VertragsbestandteilLib.php b/application/libraries/vertragsbestandteil/VertragsbestandteilLib.php index 8e5daa520..f527388c7 100644 --- a/application/libraries/vertragsbestandteil/VertragsbestandteilLib.php +++ b/application/libraries/vertragsbestandteil/VertragsbestandteilLib.php @@ -74,6 +74,7 @@ class VertragsbestandteilLib { log_message('debug', "Transaction rolled back. " . $ex->getMessage()); $this->CI->db->trans_rollback(); + throw new Exception('Storing Vertragsbestandteil failed.'); } }