With AllowHoldsOnDamagedItems set to "don't allow", if an undamaged item is waiting on hold for a patron, has its Damaged status set while waiting, and then is checked out to the patron, Koha thinks the item is simultaneously still held and checked out. To recreate: -Place a hold on an undamaged item -Trigger the hold -Once the item is waiting for the patron, change its status to Damaged -Check the item out to that patron In the bib, the item now shows as both waiting and checked out in the holdings table and in the Holds tab as waiting. In the patron's record, it shows as checked out and waiting. It also still shows in 'Holds awaiting pickup'.
I can confirm. We've run into this issue on more than one occasion. Would like to see this fixed ASAP.
I guess this is the case because a 'damaged' item can no longer 'fill' the hold... but it's already waiting, so already triggered the hold. Maybe it could be changed for this case. I just wonder if there could be other use cases where this behaviour could be wanted?