Bugzilla – Attachment 10809 Details for
Bug 8381
Paging broken in OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8381 - Paging broken in OPAC search results
Bug-8381---Paging-broken-in-OPAC-search-results.patch (text/plain), 1.73 KB, created by
Alex Arnaud
on 2012-07-13 09:21:49 UTC
(
hide
)
Description:
Bug 8381 - Paging broken in OPAC search results
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2012-07-13 09:21:49 UTC
Size:
1.73 KB
patch
obsolete
>From 4dbe3b5ccef76b350987dc5111b52b423b546727 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Fri, 13 Jul 2012 11:13:47 +0200 >Subject: [PATCH] Bug 8381 - Paging broken in OPAC search results > >Fix also freezing for some browser when performing a search query. >--- > opac/opac-search.pl | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index e39e547..5c6e85b 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -602,17 +602,17 @@ for (my $i=0;$i<@servers;$i++) { > > # Adding the new search if needed > my $path_info = $cgi->url(-path_info=>1); >- $query_cgi = $cgi->url(-query=>1); >- $query_cgi =~ s/^$path_info\?//; >- $query_cgi =~ s/;/&/g; >- $query_desc .= ", $limit_desc"; >+ my $query_cgi_history = $cgi->url(-query=>1); >+ $query_cgi_history =~ s/^$path_info\?//; >+ $query_cgi_history =~ s/;/&/g; >+ my $query_desc_history = "$query_desc, $limit_desc"; > > if (!$borrowernumber || $borrowernumber eq '') { > # To a cookie (the user is not logged in) > if (($params->{'offset'}||'') eq '') { > push @recentSearches, { >- "query_desc" => $query_desc || "unknown", >- "query_cgi" => $query_cgi || "unknown", >+ "query_desc" => $query_desc_history || "unknown", >+ "query_cgi" => $query_cgi_history || "unknown", > "time" => time(), > "total" => $total > }; >-- >1.7.0.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8381
:
10809
|
10836
|
10837
|
10867