[Koha-bugs] [Bug 24802] Updating holds can cause suspensions to apply to wrong hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 6 09:34:24 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24802

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #100155|0                           |1
        is obsolete|                            |

--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 100216
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100216&action=edit
Bug 24802: Updating holds can cause suspensions to apply to wrong hold

On request.pl, the table of holds shows a suspend_until date picker for each
hold, *unless* that hold is waiting or in transit. The script
reserve/modrequest.pl assumes that there will be a suspend_until input for each
hold, but that is incorrect. Assume there are 20 holds on a record, and 10 of
them are waiting or in transit. If you were to then set the suspend until date
on the 10 open holds, and use the "Update hold(s)" button, those 10 suspensions
would apply to the 10 found holds and not the holds they should apply to!

Test Plan:
1) Place two holds on a record
2) Check in an item and trap it for the first hold
3) Now that one hold is waiting and the other is not, attempt to set
   a suspension date using the "Update hold(s)" button
4) Note your hold does not get suspended!
5) Apply this patch
6) Restart all the things!
7) Repeat steps 1-3
8) Your hold should now be suspended!

Signed-off-by: Andrew Fuerste-Henry <andrew at bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

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


More information about the Koha-bugs mailing list