Koha-clms/Koha/Library
Martin Renvoize 4a658430a3
Bug 28530: (QA follow-up) Fix branch transfer limits not checking alternate libraries
Fixed a pre-existing bug where branch transfer limits would prevent ANY
transfer if the optimal library was blocked, instead of trying the next
best candidate.

Original behavior:
- Sort candidates by best ratio
- Check if transfer to best candidate is allowed
- If not allowed: exit loop immediately (bug!) and return undef
- Result: No transfer created even if other valid candidates exist

Fixed behavior:
- Sort candidates by best ratio
- Check if transfer to best candidate is allowed
- If allowed: use that library and exit loop
- If not allowed: continue to next candidate
- Result: Uses the best ALLOWED candidate

This fix ensures that when branch transfer limits block the optimal
destination, the system will try the next-best option instead of
giving up entirely.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-02-10 10:51:43 -07:00
..
FloatLimit.pm Bug 28530: Fix forbidden http pattern 2026-02-10 10:51:38 -07:00
FloatLimits.pm Bug 28530: (QA follow-up) Fix branch transfer limits not checking alternate libraries 2026-02-10 10:51:43 -07:00
Group.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Groups.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Hour.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Hours.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
OverDriveInfo.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
OverDriveInfos.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00