]> git.koha-community.org Git - koha.git/commit
Bug 14733: Prevent a record from having holds with duplicate priorities
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 26 Aug 2015 15:43:08 +0000 (11:43 -0400)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 16 Oct 2015 01:05:29 +0000 (14:05 +1300)
commit359dac4781cdd47f47b3148815b274d22f1f38f4
treede1cf08f1935310c4814a57f33882fd2c14550ed
parentfda6ea7c322fccf79b07bec04d68c9c79a8a382d
Bug 14733: Prevent a record from having holds with duplicate priorities

It is possible to create holds with duplicate priorities.

The reason for this is that typically the priority is calculated before
placing the hold. When the hold is placed the priority is calculated.
This can easily be shown by opening up two browser windows and starting
to place a hold for a record in each one. You'll see that both list the
same priority. If you than place the hold in each window, both holds
will have the same priority!

Test Plan:
1) Run unit tests pre-patch, note they fail
2) Run unit tests post-patch, note they succeed

Signed-off-by: Heather Braum <hbraum@nekls.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 37ad2d78679fc8487811ff9cd1679eecac30faa5)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/Reserves.pm