From 815019cc6cdc97f37080f7941e07fcad3556a68a Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 30 Sep 2025 20:27:36 +0000 Subject: [PATCH] Bug 40916: Fix another occurance Signed-off-by: Michelle Signed-off-by: Paul Derscheid Signed-off-by: Lucas Gass (cherry picked from commit ac80486f2e1e53dafca505dd1441488756bbe292) Signed-off-by: Paul Derscheid --- virtualshelves/shelves.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index 2c60dfd461..68d2f07723 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -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';