Bug 40916: Fix another occurance

Signed-off-by: Michelle <mspinney@clamsnet.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit ac80486f2e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lucas Gass 2025-09-30 20:27:36 +00:00 committed by Paul Derscheid
parent a7174af564
commit 815019cc6c
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ if ( $op eq 'view' ) {
$sortfield = 'title'
unless grep { $_ eq $sortfield }
qw( title author copyrightdate publicationyear itemcallnumber dateadded );
if ( $sortfield == 'copyrightdate' and C4::Context->preference('marcflavour') == 'UNIMARC' ) {
if ( $sortfield eq 'copyrightdate' and C4::Context->preference('marcflavour') eq 'UNIMARC' ) {
$sortfield = 'publicationyear';
}
my $direction = $query->param('direction') || 'asc';