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> |
||
|---|---|---|
| .. | ||
| FloatLimit.pm | ||
| FloatLimits.pm | ||
| Group.pm | ||
| Groups.pm | ||
| Hour.pm | ||
| Hours.pm | ||
| OverDriveInfo.pm | ||
| OverDriveInfos.pm | ||