From 7de05adb3fca55d3b1d69b6b223cdc77defdfcd1 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 The patches applies now. I have tested it and can confirm that it works as intended. Signed-off-by: Frank Hansen Signed-off-by: Salman Ali --- 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 da8a324c78..abae2ec53e 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 4993cf0b16..0c4f44a081 100755 --- a/t/db_dependent/Biblio.t +++ b/t/db_dependent/Biblio.t @@ -246,6 +246,7 @@ sub run_tests { # Authority tests don't interact well with Elasticsearch at the moment due to the fact that there's currently no way to # roll back ES index changes. t::lib::Mocks::mock_preference('SearchEngine', 'Zebra'); + t::lib::Mocks::mock_preference('autoControlNumber', 'OFF'); my $isbn = '0590353403'; my $title = 'Foundation'; -- 2.25.1