From 786086cfcfd57509b9ff9f5ab8d3ff24ad3d1ecc 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 Signed-off-by: Jonathan Druart --- Koha/Object.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Object.pm b/Koha/Object.pm index 17609f2ada..7f36a7dc15 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.39.5