From 5a36935a2ef6b386cbeea6f5fffdd2dcc01f9b52 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" --- 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 d92166b..4dcb33c 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.1.4