From 3cbc8d3576948aac9bc13fc0b4912469046d5e7a 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 --- 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.20.1