Koha/circ
Joonas Kylmälä 70239b355c Bug 28139: Simplify logic for handling found holds in returns.pl
We are handling in this if-else block 3 cases:
 - Hold found and waiting
 - Hold found but not waiting AND whether HoldsAutoFill is enabled
 - Hold found but not waiting AND whether HoldsAutoFill disabled

If we simply first handle hold found = Waiting case first then we
don't have to individually list all those other found cases and that
simplifies this code a lot.

To test:
 1. Apply patch
 2. Make sure HoldsAutoFill is disabled
 3. Make item-level hold on branch A
 4. Check-in the item at branch A and you should get pop-up confirming
    the hold, ignore it
 5. Set HoldsAutoFill is enabled
 4. Check-in the item again and you now the hold should have been
    automatically filled

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-16 12:28:17 +02:00
..
add_message.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article-request-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article-requests.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bookcount.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
branchoverdues.pl Bug 27548: "use of uninitialized value" warning on branchoverdues.pl 2021-02-01 17:20:37 +01:00
branchtransfers.pl Bug 25690: (QA follow-up) PROCESSED -> PROCESSING for consistency 2021-03-04 16:18:42 +01:00
checkout-notes.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
circulation-home.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
circulation.pl Bug 27652: Display patron's categories for sysprefs expecting them 2021-03-09 17:20:47 +01:00
del_message.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
hold-transfer-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
offline-mf.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
offline.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
on-site_checkouts.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
overdue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
pendingreserves.pl Bug 27131: Add get_items_that_can_fill 2021-02-18 11:53:10 +01:00
renew.pl Bug 27549: "use of uninitialized value" warning on renew.pl 2021-02-01 17:20:37 +01:00
request-article.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
reserveratios.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
returns.pl Bug 28139: Simplify logic for handling found holds in returns.pl 2021-04-16 12:28:17 +02:00
set-library.pl Bug 24786: (follow-up) Cache the register_name in the session 2020-11-06 15:40:00 +01:00
transfer-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
transfers_to_send.pl Bug 22569: Add a 'Transfers to send' report 2021-03-11 11:51:40 +01:00
transferstoreceive.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
view_holdsqueue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
waitingreserves.pl Bug 7806: Fix remaining occurrences of 0000-00-00 2021-03-01 11:16:42 +01:00
ypattrodue-attr-search-authvalue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ysearch.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00