Bugzilla – Attachment 38072 Details for
Bug 13022
Hardcoded limit causes records with more than 20 items to show inaccurate statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13022 [QA Followup] - Allow the pref to be unset for unlimited item status checks
Bug-13022-QA-Followup---Allow-the-pref-to-be-unset.patch (text/plain), 2.34 KB, created by
Kyle M Hall (khall)
on 2015-04-17 14:08:40 UTC
(
hide
)
Description:
Bug 13022 [QA Followup] - Allow the pref to be unset for unlimited item status checks
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-17 14:08:40 UTC
Size:
2.34 KB
patch
obsolete
>From ab57dc7deb4de81540cd5a6cd799ae1889c29d18 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 17 Apr 2015 09:51:03 -0400 >Subject: [PATCH] Bug 13022 [QA Followup] - Allow the pref to be unset for unlimited item status checks > >--- > C4/Search.pm | 3 ++- > .../en/modules/admin/preferences/searching.pref | 4 +++- > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index eb978dc..0c0c2e1 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -2139,7 +2139,8 @@ sub searchResults { > || $item->{itemlost} > || $item->{damaged} > || $item->{notforloan} >- || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) { >+ || ( C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') >+ && $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) ) { > > # A couple heuristics to limit how many times > # we query the database for item transfer information, sacrificing >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index a7c39bf..c5c00a9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -152,7 +152,9 @@ Searching: > - For records with many items, only check the availability status for the first > - pref: MaxSearchResultsItemsPerRecordStatusCheck > class: integer >- - items. If a record has more than this number of items, they availability statuses may be incorrect in the search results, but will be correct in the record details. >+ - items. >+ - <br/>If a record has more than this number of items, they availability statuses may be incorrect in the search results, but will be correct in the record details. >+ - <br/>Leave empty for no limit on the number of items for which to check the status. > - > - By default, sort search results in the OPAC by > - pref: OPACdefaultSortField >-- >1.7.2.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 13022
:
31978
|
37970
|
37971
|
38066
|
38069
|
38072
|
38075
|
38076
|
38437
|
38438
|
38476
|
38477
|
38478
|
45957
|
45958
|
45959