Koha-clms/C4
Kyle M Hall 7cba916cef Bug 12086 - Hold priorities incorrect, when waiting status was reversed
1) Test record has 1 single item, checked out to patron X
2) Place 3 holds for patrons A, B and C, all title level hold this time
   A, B, C, item branches and staff branch are the same.
3) Return item, confirm hold
4) Confirm item is now waiting for patron A
   Priorities are: A = Waiting, B = 1, C = 2
5) Open patron account of user B, checkout book
   Koha asks: Item X has been waiting for patron A... Revert
   waiting status
   Confirm.
6) Check priorities:
   Hold list shows: A = 1, C = 1
   Database says: A = 1, C = 3
7) Apply this patch
8) Repeat steps 1-6
9) Note the priorities are correct

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Test plan correctly predicts the error and the correction made by the
patch.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit de89021646)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2014-12-15 17:29:33 +01:00
..
AuthoritiesMarc
…
Barcodes
…
ClassSortRoutine Bug 9770: fix sorting of Dewey call numbers that contain prefixes 2013-07-15 16:12:47 +00:00
Creators Bug 10763 - [SIGNED-OFF] Update POD of C4::Creators::Lib::html_table() to use TT syntax 2013-08-20 14:31:34 +00:00
External Bug 10320: (follow-up) correct license statement 2013-09-08 07:04:45 +00:00
Form
…
Heading
…
ILSDI Bug 8918: Fix reserve priority in ILS-DI 2014-05-27 16:08:21 +02:00
Installer Bug 8044: (follow-up) fix warning and error messages in translate.pl 2014-08-01 15:52:09 +02:00
Labels Bug 11402: make Labels::_guide_box return undef if undefned data is passed 2014-01-27 14:42:02 +01:00
Linker
…
Members Bug 7919: Fix unit test (Members_AttributeTypes.t) 2012-12-07 18:26:37 -05:00
OAI Bug 9295: Introduce operator equal/ notequal to OAI set mapping instead of hardcoded 'equal' value. 2013-10-10 23:03:30 +00:00
Output
…
Patroncards
…
Reports Bug 9216: make columns.def file translatable 2014-08-06 14:24:53 +02:00
SIP Bug 9865: make SIP msg encoding configurable via SIPconfig.xml 2014-08-01 15:57:17 +02:00
Search
…
Serials Bug 7688: (follow-up) update license statements 2013-10-30 02:56:32 +00:00
Utils
…
VirtualShelves Bug 10853: All existing routing to get a CSV should return a MARC csv 2013-10-11 02:16:33 +00:00
Accounts.pm Bug 2546: make description of standard fine types translatable 2013-12-17 18:19:54 +01:00
Acquisition.pm Bug 12438 - Bad encoding in acquisition basket 2014-09-10 16:30:30 +02:00
Auth.pm Bug 11219: make CAS authentication work with URL parameters 2014-08-01 15:28:51 +02:00
Auth_cas_servers.yaml.orig
…
Auth_with_cas.pm Bug 11219: (follow-up) fetch only URL parameters 2014-08-01 15:28:59 +02:00
Auth_with_ldap.pm Bug 10908: restore docs on principal_name LDAP option 2013-10-21 15:28:11 +00:00
AuthoritiesMarc.pm Bug 7442: (follow-up) restore display of heading type for non-UNIMARC 2014-10-16 12:32:08 +02:00
BackgroundJob.pm Bug 10601: (follow-up) improvements to ->set() and ->get() 2013-09-18 17:23:44 +00:00
Barcodes.pm
…
Biblio.pm Bug 11912: (refactoring followup) make GetMarcISBN implement its advertised API 2014-08-13 09:40:21 +02:00
Bookseller.pm Bug 7965: Silence warns in staff log 2014-02-18 09:49:12 +01:00
Boolean.pm Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
Branch.pm Bug 10277 - Add C4::Context->IsSuperLibrarian() 2014-08-07 09:36:50 +02:00
Breeding.pm Bug 12112: remove disused routine C4::Breeding::ImportBreeding() 2014-09-17 16:39:05 +02:00
Budgets.pm Bug 7308: rework aqbudgets.pl table 2014-09-10 16:37:20 +02:00
Calendar.pm Bug 7351 : feature that allows to delete a range of dates 2012-09-28 12:19:45 +02:00
Category.pm Bug 7919: FIX the "all" categories method 2013-01-02 16:50:52 -05:00
Charset.pm Bug 11730: ensure that C4::Charset loads C4::Context 2014-05-19 16:31:30 +02:00
Circulation.pm Bug 10277 - Add C4::Context->IsSuperLibrarian() 2014-08-07 09:36:50 +02:00
ClassSortRoutine.pm
…
ClassSource.pm Bug 10643: fix inappropriate uses of $sth->finish() in C4::ClassSource.pm 2013-08-09 15:32:22 +00:00
Context.pm Bug 11587: get rid of warnings generated by IsSuperLibrarian with anonymous sessions 2014-08-07 10:05:49 +02:00
Contract.pm
…
CourseReserves.pm bug 8215: (followup) rename GetItemReservesInfo 2013-05-21 15:51:03 -07:00
Creators.pm
…
Csv.pm Bug 10853: All existing routing to get a CSV should return a MARC csv 2013-10-11 02:16:33 +00:00
Dates.pm
…
Debug.pm
…
HTML5Media.pm Bug 8377: Followup move style in a css file and do not pass template to a pm 2012-12-27 09:28:00 -05:00
Heading.pm
…
HoldsQueue.pm Bug 11258: fix another case where holds queue made transfer requests that contradict the library holds policy 2014-08-06 11:55:46 +02:00
Images.pm Bug 8710 - Don't show the images tab in the OPAC if the record has no local images 2012-11-28 18:54:40 -05:00
ImportBatch.pm Bug 11254: make reservoir search normalize ISBNs 2014-08-13 09:44:51 +02:00
ImportExportFramework.pm Bug 11666: remove SQL as an option for MARC framework exports and imports 2014-02-06 20:02:07 +01:00
Input.pm Bug 7919 : Display of values depending on the connexion library 2012-12-05 10:10:57 -05:00
Installer.pm Bug 10523: Remove two obsolete routines from Installer.pm 2013-10-31 16:51:47 +00:00
ItemCirculationAlertPreference.pm
…
ItemType.pm Bug 10513: display a warning/message when returning a chosen item type 2013-09-16 17:45:31 +00:00
Items.pm Bug 10277 - Add C4::Context->IsSuperLibrarian() 2014-08-07 09:36:50 +02:00
Koha.pm Bug 10893: fix location facet in UNIMARC 2014-12-08 14:28:43 +01:00
Labels.pm
…
Languages.pm Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
Letters.pm Bug 11760: In notices, output road type description rather than code 2014-06-03 12:52:43 +02:00
Linker.pm
…
Log.pm Bug 7067 - OPAC Borrower Self Registration 2012-12-14 08:08:59 -05:00
Maintainance.pm
…
MarcModificationTemplates.pm Bug 11479: Remove experimental given/when keywords 2014-05-21 09:35:28 +02:00
Matcher.pm Bug 10230: no need to use SimpleSearch for matching auths 2013-05-19 08:40:13 -04:00
Members.pm Bug 10277 - Add C4::Context->IsSuperLibrarian() 2014-08-07 09:36:50 +02:00
Message.pm
…
NewsChannels.pm Bug 11736 - Use new DataTables include in Koha news templates 2014-05-21 12:06:18 +02:00
Output.pm Bug 10016: force zero browser-side caching of SCO pages 2013-10-21 18:05:12 +00:00
Overdues.pm Bug 11359: Add the borrower's cardnumber and phonenumber to the branch overdues report 2014-06-04 10:42:44 +02:00
Patroncards.pm
…
Print.pm
…
Ratings.pm
…
Record.pm Bug 11058: fix compilation warning in C4::Record 2013-10-22 01:21:07 +00:00
Reports.pm
…
Reserves.pm Bug 12086 - Hold priorities incorrect, when waiting status was reversed 2014-12-15 17:29:33 +01:00
Review.pm
…
Ris.pm
…
RotatingCollections.pm Bug 11384: rename the collections_tracking.ctId column 2014-01-03 09:24:21 +01:00
SMS.pm
…
SQLHelper.pm Bug 11221: ensure that SQLHelper uses NULL rather than 0000-00-00 as default date value 2013-11-19 15:29:08 +00:00
Scheduler.pm
…
Scrubber.pm
…
Search.pm Bug 9972: Add/change some zebra indexes (MARC21) 2014-08-13 10:30:53 +02:00
Serials.pm Bug 12098: (follow-up) put can_show_subscription() into use 2014-08-07 10:27:11 +02:00
Service.pm
…
ShelfBrowser.pm Bug 10856: (follow-up) if callnumbers are equal, order should be on itemnumber 2013-10-04 15:57:03 +00:00
SocialData.pm
…
Stats.pm
…
Suggestions.pm Bug 10277 - Add C4::Context->IsSuperLibrarian() 2014-08-07 09:36:50 +02:00
TTParser.pm
…
Tags.pm Bug 9136: C4::Tags not Plack-compatible 2012-12-22 15:47:48 -05:00
Templates.pm Bug 5052: make it possible to pick a language if all choices are sublanguage 2014-08-06 11:15:39 +02:00
TmplToken.pm
…
TmplTokenType.pm
…
UploadedFile.pm
…
VirtualShelves.pm Bug 11799: Housekeeping: Remove _biblionumber_sth from VirtualShelves.pm 2014-05-21 10:43:11 +02:00
XISBN.pm Bug 9728: XISBN unit test update 2013-06-18 09:46:37 -07:00
XSLT.pm Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00