From 48dec364f0204ad01a09844e8ef25ecd573285fa Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 22 Dec 2017 07:43:39 +0000 Subject: [PATCH] Bug 19828: (QA follow-up) Fix rethrowing exception and move rethrowing out of 'if' statement just in case the exception does not came from DBIx::Class Signed-off-by: Josef Moravec --- Koha/Object.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Object.pm b/Koha/Object.pm index 17609f2..7f36a7d 100644 --- a/Koha/Object.pm +++ b/Koha/Object.pm @@ -142,9 +142,9 @@ sub store { duplicate_id => $+{key} ); } - # Catch-all for foreign key breakages. It will help find other use cases - $->rethrow(); } + # Catch-all for foreign key breakages. It will help find other use cases + $_->rethrow(); } } -- 2.1.4