@@ -, +, @@ --- C4/Heading.pm | 2 +- t/db_dependent/Heading.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Heading.pm +++ a/C4/Heading.pm @@ -241,7 +241,7 @@ sub _search { # This is legal, so we do a fallback search if( !$total && $thesaurus && !( grep /$thesaurus/,('lcsh','lcac','mesh','nal','notspecified','cash','rvm','sears','aat') ) ){ pop @value; - push @value, 'z'; + push @value, 'notdefined'; $search_query = $builder->build_authorities_query_compat( \@marclist, \@and_or, \@excluding, \@operator, \@value, $self->{'auth_type'}, --- a/t/db_dependent/Heading.t +++ a/t/db_dependent/Heading.t @@ -166,6 +166,6 @@ subtest "_search tests" => sub { { term => { 'match-heading.ci_raw' => 'Uncles generalsubdiv Fiction' } }, { term => { 'subject-heading-thesaurus.ci_raw' => 'z' } }, ]; - is_deeply( $terms, $expected_terms, "When thesaurus in subfield 2, and nothing is found, we should search again for 008_11 = z"); + is_deeply( $terms, $expected_terms, "When thesaurus in subfield 2, and nothing is found, we should search again for notdefined (008_11 = z) "); }; --