Bug 38509

Summary: Set correct transfer when a hold exists
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle, rcoert, thibaud.guillot
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 38509 - Displayed transfer destination is incorrect when a reservation has been found
Bug 38509: [22.11] Displayed transfer destination is incorrect when a reservation has been found
Bug 38509: Displayed transfer destination is incorrect when a reservation has been found
Bug 38509: Set correct transfer when a hold exists

Description Baptiste Wojtkowski (bwoj) 2024-11-21 14:44:17 UTC Comment hidden (obsolete)
Comment 1 Baptiste Wojtkowski (bwoj) 2024-11-21 14:54:47 UTC Comment hidden (obsolete)
Comment 2 Baptiste Wojtkowski (bwoj) 2024-11-21 15:02:00 UTC Comment hidden (obsolete)
Comment 3 Baptiste Wojtkowski (bwoj) 2024-11-21 15:02:47 UTC Comment hidden (obsolete)
Comment 4 Baptiste Wojtkowski (bwoj) 2024-11-21 15:40:57 UTC Comment hidden (obsolete)
Comment 5 Thibaud Guillot (thibaud_g) 2025-08-29 08:03:29 UTC
Created attachment 185882 [details] [review]
Bug 38509: Set correct transfer when a hold exists

When you transfer a reserved item, a pop up appears. Depending on your
action, if you choose to transfer the item anyway, the flow is not
normal afterwards:

- Item is not added to branchtransfers sql tables (so neither in
  "Transfer to receive" section)
- It does not appear in the list under the transfer action
- Its homebranch is immediately that of destination site

Test plan:
1) Place hold on item specific or not, with pickup library different
   than current library for a real case
2) Transfer this item to another library (library choose for pickup for
   example)
3) You will see a pop up (with incorrect label destination)
4) After confirm it, pop up disappears and none transfer is saved in
   branchtransfers table (neither in 'transfer to receive' section)
5) On biblio page you will already see item with new homebranch
6) Apply this patch and restart_all
7) Perform the same action, place a hold then transfer item
8) Pop up shows now the correct label destination
9) Transfer will be correctly performed, appears in branchtransfers sql
   table and 'transfer to receive' section (for destination site). Also
   item homebranch does not changes until the destination site check in
   it.

Sponsored-by: BibLibre
Co-authored-by: bwoj - baptiste.wojtkowski@biblibre.com