Bug 38852

Summary: Make "Default holds policy by item type" work when record have also other item types than rule's given item type
Product: Koha Reporter: Kati Sillgren <kati.sillgren>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
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:

Description Kati Sillgren 2025-01-09 07:33:23 UTC
admin/smart-rules.pl
Default holds policy by item type

Default hold policy by item type doesn't work when records all items don't have rule's given item type.

For example

Default holds policy by item type
 Item type = A
 Hold policy = From any library
 Hold picup library match = item's home library 
 Return policy = item returns home


Record
- record has item with item type A and item with item type B
- item type A is the same as rule's given item type
- you place a hold 
  Pickup at - all pickup libraries are shown and any of them is chooseable. You can even choose library that is not item's home library