Bug 26172: Fix return value for ->register

There is a ON DELETE CASCADE clause on this FK

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-10-15 11:45:26 +02:00
parent 57f58f29b1
commit 932e2d05bc

View file

@ -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);
}