Bugzilla – Attachment 5199 Details for
Bug 6656
Default sort preferences ignored on advanced search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6656 : Fix for advanced search not respecting default sort order
Bug-6656--Fix-for-advanced-search-not-respecting-d.patch (text/plain), 1.87 KB, created by
Chris Cormack
on 2011-08-29 03:36:38 UTC
(
hide
)
Description:
Bug 6656 : Fix for advanced search not respecting default sort order
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-08-29 03:36:38 UTC
Size:
1.87 KB
patch
obsolete
>From 9b341bdbfe0aa420d960239e8afee16d7191e96c Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Mon, 29 Aug 2011 15:35:45 +1200 >Subject: [PATCH] Bug 6656 : Fix for advanced search not respecting default sort order > >--- > catalogue/search.pl | 2 +- > opac/opac-search.pl | 3 +-- > 2 files changed, 2 insertions(+), 3 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index e49507e..b9f9ed3 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -294,7 +294,7 @@ if ( $template_type eq 'advsearch' ) { > my $default_sort_by = > C4::Context->preference('defaultSortField') . '_' > . C4::Context->preference('defaultSortOrder'); >- $template->param( $default_sort_by => 1 ); >+ $template->param( sort_by => $default_sort_by ); > } > > # determine what to display next to the search boxes (ie, boolean option >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 81b7ce6..8f6b67a 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -198,7 +198,6 @@ $template->param(itemtypeloop => \@itemtypesloop); > > # The following should only be loaded if we're bringing up the advanced search template > if ( $template_type && $template_type eq 'advsearch' ) { >- > # load the servers (used for searching -- to do federated searching, etc.) > my $primary_servers_loop;# = displayPrimaryServers(); > $template->param(outer_servers_loop => $primary_servers_loop,); >@@ -212,7 +211,7 @@ if ( $template_type && $template_type eq 'advsearch' ) { > my $default_sort_by = > C4::Context->preference('OPACdefaultSortField') . '_' > . C4::Context->preference('OPACdefaultSortOrder'); >- $template->param( $default_sort_by => 1 ); >+ $template->param( sort_by => $default_sort_by ); > } > > # determine what to display next to the search boxes (ie, boolean option >-- >1.7.4.1
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 6656
:
5199
|
5208
|
5209
|
5301