Bugzilla – Attachment 72480 Details for
Bug 20167
Item hold is set to bibliographic hold when changing pickup location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20167: Make changing a hold pass the itemnumber to ModReserve
Bug-20167-Make-changing-a-hold-pass-the-itemnumber.patch (text/plain), 1.25 KB, created by
Claire Gravely
on 2018-03-06 14:19:14 UTC
(
hide
)
Description:
Bug 20167: Make changing a hold pass the itemnumber to ModReserve
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2018-03-06 14:19:14 UTC
Size:
1.25 KB
patch
obsolete
>From 9b1222d7443c4e3b7576617dc25d8e5bf45f282c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 5 Mar 2018 13:36:50 -0300 >Subject: [PATCH] Bug 20167: Make changing a hold pass the itemnumber to > ModReserve > >If you have an item-level hold, changing an attribute (like priority, >pickup location or suspended until date) makes the hold a biblio-level >hold, because ModReserve is not passed the current itemnumber. > >This patch uses the hold's itemnumber and passes it to the ModReserve >call. > >To test: >- Run the regression tests from the previous patch: > $ kshell > k$ prove t/db_dependent/api/v1/holds.t >=> FAIL: Tests fail >- Apply this patch >- Run the tests: > $ kshell > k$ prove t/db_dependent/api/v1/holds.t >=> SUCCESS: Tests pass! >- Sign off :-D > >Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> >--- > Koha/REST/V1/Hold.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/REST/V1/Hold.pm b/Koha/REST/V1/Hold.pm >index 2927a7a..2833f39 100644 >--- a/Koha/REST/V1/Hold.pm >+++ b/Koha/REST/V1/Hold.pm >@@ -144,6 +144,7 @@ sub edit { > branchcode => $branchcode, > rank => $priority, > suspend_until => $suspend_until, >+ itemnumber => $hold->itemnumber > }; > > C4::Reserves::ModReserve($params); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20167
:
72436
|
72437
|
72479
|
72480
|
72534
|
72535