https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28721 Bug ID: 28721 Summary: Holds Ratio fails when all copies are unavailable Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: andrew@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com To recreate: - find a bib with just 1 item on it - confirm the item is not notforloan, damaged, lost, or withdrawn - place 3 holds on the title - go to the holds ratio in circulation, confirm your title shows when the ratio is set to 3 - go back to your item, set it to lost - reload the holds ratio, see your title is no longer listed In the scenario above, we end up dividing by zero because there are no available items. This messes up our ratio and makes this title not show as needing more copies, even though our ratio is definitely less than 3 copies per hold. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.