From d4e3e6af9fd054dc64844be49e8d1a0f28b545bd Mon Sep 17 00:00:00 2001 From: LeireDiez Date: Thu, 11 May 2017 17:09:22 +0200 Subject: [PATCH] Bug 18204 - Authority searches are not saved in Search history When you search an authority in Authority search, this search is not saved in Search history. EnableOpacSearchHistory is enabled Steps to test: 1- Login your account (opac) 2- Search an authority in Authority search 3- Go to Search history -> Authority 4- It says "Your authority search history is empty" Signed-off-by: Katrin Fischer Signed-off-by: Julian Maurice Signed-off-by: Kyle M Hall --- opac/opac-authorities-home.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-authorities-home.pl b/opac/opac-authorities-home.pl index d92166bea6..4dcb33c2e7 100755 --- a/opac/opac-authorities-home.pl +++ b/opac/opac-authorities-home.pl @@ -124,7 +124,7 @@ if ( $op eq "do_search" ) { # Opac search history if (C4::Context->preference('EnableOpacSearchHistory')) { - unless ( $startfrom ) { + if ( $startfrom == 1) { my $path_info = $query->url(-path_info=>1); my $query_cgi_history = $query->url(-query=>1); $query_cgi_history =~ s/^$path_info\?//; -- 2.39.5