https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18332 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- + my $result = $self->_resultset->slice($count - 1, $count)->first; Why do not do this: my ( $result ) = $self->_resultset->slice($count - 1, $count - 1); Strictly speaking, you call slice with an invalid argument; since the index starts at 0, $count is past the last element. Instead of calling in scalar context and doing first, you should call in list context? Adding a follow-up. -- You are receiving this mail because: You are watching all bug changes.