]> git.koha-community.org Git - koha.git/commit
Bug 12086 - Hold priorities incorrect, when waiting status was reversed
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 17 Apr 2014 16:10:21 +0000 (12:10 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Dec 2014 16:29:33 +0000 (17:29 +0100)
commit7cba916cef9f41a95b29549aaebd3accf2d8b6f0
tree333043a159ec08fec3c9f41d405ee9d28e822d16
parent1caaf4e24ba99541df1b8feeb9fdeb759c6ab2c6
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 de89021646c4eda33703af9516541bd69758573e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reserves.pm
t/db_dependent/Holds/RevertWaitingStatus.t [new file with mode: 0755]