From 932e2d05bca743d1862efd123f485d8c352fa778 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 15 Oct 2020 11:45:26 +0200 Subject: [PATCH] Bug 26172: Fix return value for ->register There is a ON DELETE CASCADE clause on this FK Signed-off-by: Jonathan Druart --- Koha/Cash/Register/Action.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Cash/Register/Action.pm b/Koha/Cash/Register/Action.pm index 5ffdb4167f..157ee7daf6 100644 --- a/Koha/Cash/Register/Action.pm +++ b/Koha/Cash/Register/Action.pm @@ -57,7 +57,6 @@ Return the register linked to this cash register::action sub register { my ($self) = @_; my $rs = $self->_result->register; - return unless $rs; return Koha::Cash::Register->_new_from_dbic($rs); } -- 2.39.5