[Koha-bugs] [Bug 13022] Hardcoded limit causes records with more than 20 items to show inaccurate statuses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 24 10:32:29 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13022

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #38066|0                           |1
        is obsolete|                            |
  Attachment #38072|0                           |1
        is obsolete|                            |
  Attachment #38076|0                           |1
        is obsolete|                            |
  Attachment #38438|0                           |1
        is obsolete|                            |

--- Comment #16 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 38476
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38476&action=edit
Bug 13022 - Hardcoded limit causes records with more than 20 items to show
inaccurate statuses

If a record has more than 20 items, all the items over 20 will show as
available on the search results even if they are not!

This is a hard coded limit in the Search module. This number should be
configurable.

Test Plan:
1) Create a record with more than 20 items
2) Set all the items to waiting holds or in transit
3) Search for results that will include that item
4) Note some say they are available even though they are not
5) Apply this patch
6) Run updatedatabase.pl
7) Set the new system preference MaxSearchResultsItemsPerRecordStatusCheck
   to a number larger than the number of items on your record
8) Re-run the search
9) Note that the hold and transit statuses for the items are now correct

Signed-off-by: Andreas Hedström Mace <andreas.hedstrom.mace at sub.su.se>

Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list