[Koha-bugs] [Bug 6092] default sort field and order when syspref are NULL
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 10 11:39:29 CEST 2011
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6092
Paul Poulain <paul.poulain at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Patch Status|Signed Off |Does not apply
--- Comment #4 from Paul Poulain <paul.poulain at biblibre.com> 2011-08-10 09:39:29 UTC ---
QA comment
This patch does not apply anymore. I think it must be completly rewritten. The
conflict says :
<<<<<<< HEAD
if ( C4::Context->preference('OPACdefaultSortField')
&& C4::Context->preference('OPACdefaultSortOrder') ) {
my $default_sort_by =
C4::Context->preference('defaultSortField') . '_'
. C4::Context->preference('defaultSortOrder');
$template->param( $default_sort_by => 1 );
}
=======
$template->param($default_sort_by => 1);
>>>>>>> BUG6092 default sort field and order when syspref are NULL
=> the default sort order is set only if the syspref have been set, so the
my $default_sort_field = C4::Context->preference('defaultSortField') ||
'relevance'; # relevance field by default
my $default_sort_order = C4::Context->preference('defaultSortOrder') || 'dsc';
# decreasing order by default
my $default_sort_by = $default_sort_field.'_'.$default_sort_order;
will do nothing.
--
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Koha-bugs
mailing list