From ad5e7726f0c017a8709bca770e7c7c2dfd9a9189 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 19 Mar 2021 11:29:50 +0000 Subject: [PATCH] Bug 27981: (follow-up) Set pref off for existing tests --- members/memberentry.pl | 2 ++ t/db_dependent/Biblio.t | 1 + 2 files changed, 3 insertions(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index 583483f7f9..65a7467907 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -109,7 +109,9 @@ $template->param( relationships => scalar $patron->guarantor_relationships ) if my @relations = split /,|\|/, C4::Context->preference('borrowerRelationship'), -1; @relations = ('') unless @relations; +warn Data::Dumper::Dumper( \@relations ); my $empty_relationship_allowed = grep {$_ eq ""} @relations; +warn $empty_relationship_allowed; $template->param( empty_relationship_allowed => $empty_relationship_allowed ); my $guarantor_id = $input->param('guarantor_id'); diff --git a/t/db_dependent/Biblio.t b/t/db_dependent/Biblio.t index 8caf76f355..3ffe40208e 100755 --- a/t/db_dependent/Biblio.t +++ b/t/db_dependent/Biblio.t @@ -230,6 +230,7 @@ sub run_tests { my $marcflavour = shift; t::lib::Mocks::mock_preference('marcflavour', $marcflavour); + t::lib::Mocks::mock_preference('autoControlNumber', 'OFF'); my $isbn = '0590353403'; my $title = 'Foundation'; -- 2.11.0