Summary: | Returned items always trigger hold notification | ||
---|---|---|---|
Product: | Koha | Reporter: | Jared Camins-Esakov <jcamins> |
Component: | Staff interface | Assignee: | Chris Cormack <chris> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | major | ||
Priority: | PATCH-Sent (DO NOT USE) | CC: | chris, gmcharlt, koha.sekjal |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 5609 | ||
Attachments: |
Bug 5675 : CheckReserves not honouring item level itemtypes preferences
Bug 5675 : CheckReserves not honouring item level itemtypes preferences |
Description
Jared Camins-Esakov
2011-01-31 17:29:02 UTC
This also applies to damaged items- damaged items will trigger holds even if AllowHoldsOnDamagedItems is set to "Don't allow" if there is another item that can have holds on the biblio. Working on this now It is restricted to biblio level holds, if you place an item specific hold, it works ok. Working on fix now Yep, its C4::Reserves::CheckReserves .. and the issue is only with biblio level holds The problem query is SELECT items.biblionumber, items.biblioitemnumber, itemtypes.notforloan, items.notforloan AS itemnotforloan, items.itemnumber FROM items LEFT JOIN biblioitems ON items.biblioitemnumber = biblioitems.biblioitemnumber LEFT JOIN itemtypes ON biblioitems.itemtype = itemtypes.itemtype This is wrong, because it doesnt use the itemlevel itype. It should check the syspref and use the right level. Either biblio or item level Created attachment 5194 [details] [review] Bug 5675 : CheckReserves not honouring item level itemtypes preferences Created attachment 5452 [details] [review] Bug 5675 : CheckReserves not honouring item level itemtypes preferences Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> With item level itypes activated only the item for which holds were allowed in circulation rules triggered the hold notice on checkin. Also checked that biblio level itype still trigered correctly. Change to SQL only, with a little logic around selecting which version of the query to utilize (depending on item-level_itypes). Easy to read, marking as Passed QA. Pushed, please test |