diff --git a/Koha/Holds.pm b/Koha/Holds.pm index 6dc0c9e84d..038e31c1ba 100644 --- a/Koha/Holds.pm +++ b/Koha/Holds.pm @@ -77,7 +77,7 @@ sub forced_hold_level { my $record_level_count = $self->search( { itemnumber => undef } )->count(); return 'record' if $record_level_count > 0; - return undef; + return; } =head3 type diff --git a/t/db_dependent/Reserves/MultiplePerRecord.t b/t/db_dependent/Reserves/MultiplePerRecord.t index 9771051f19..d2da65389f 100755 --- a/t/db_dependent/Reserves/MultiplePerRecord.t +++ b/t/db_dependent/Reserves/MultiplePerRecord.t @@ -17,7 +17,6 @@ # You should have received a copy of the GNU General Public License # along with Koha; if not, see . -use Carp::Always; use Modern::Perl; use Test::More tests => 38;