Bugzilla – Attachment 3026 Details for
Bug 5661
Authority search return an "Error 500" when "Sort by" is set to "No order"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Fix-a-problem-when-doing-an-authority-search-with-no.patch (text/plain), 1.03 KB, created by
Frédérick Capovilla
on 2011-01-26 15:33:39 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-01-26 15:33:39 UTC
Size:
1.03 KB
patch
obsolete
>From 7d9e6eb91eb32e5ad6e281e982d5024a119070fe Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Wed, 26 Jan 2011 10:11:03 -0500 >Subject: [PATCH] Fix a problem when doing an authority search with no sort order > >--- > C4/AuthoritiesMarc.pm | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 9421be9..cd16dc9 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -264,8 +264,9 @@ sub SearchAuthorities { > '@attr 7=2 @attr 1=Heading 0' > :'' > ); >- $query=($query?"\@or $orderstring $query":"\@or \@attr 1=_ALLRECORDS \@attr 2=103 '' $orderstring "); >- >+ $query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''"); >+ $query="\@or $orderstring $query" if $orderstring; >+ > $offset=0 unless $offset; > my $counter = $offset; > $length=10 unless $length; >-- >1.5.6.5 >
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 5661
: 3026