Bugzilla – Attachment 90677 Details for
Bug 9834
Reverting a waiting hold should lead to the former hold type (item or biblio level)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9834: (QA follow-up) API fixes
Bug-9834-QA-follow-up-API-fixes.patch (text/plain), 2.04 KB, created by
Tomás Cohen Arazi
on 2019-06-17 15:17:13 UTC
(
hide
)
Description:
Bug 9834: (QA follow-up) API fixes
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2019-06-17 15:17:13 UTC
Size:
2.04 KB
patch
obsolete
>From 4515be3ed87daa90e277e3d6ba4bb2b28846a101 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 17 Jun 2019 12:16:53 -0300 >Subject: [PATCH] Bug 9834: (QA follow-up) API fixes > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/REST/V1/Holds.pm | 2 ++ > Koha/Schema/Result/Reserve.pm | 5 +++-- > api/v1/swagger/definitions/hold.json | 4 ++++ > 3 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/Holds.pm b/Koha/REST/V1/Holds.pm >index 58ddf1f273..a74307ff72 100644 >--- a/Koha/REST/V1/Holds.pm >+++ b/Koha/REST/V1/Holds.pm >@@ -464,6 +464,7 @@ our $to_api_mapping = { > suspend => 'suspended', > suspend_until => 'suspended_until', > itemtype => 'item_type', >+ item_level_hold => 'item_level', > }; > > =head3 $to_model_mapping >@@ -486,6 +487,7 @@ our $to_model_mapping = { > suspended => 'suspend', > suspended_until => 'suspend_until', > item_type => 'itemtype', >+ item_level => 'item_level_hold', > }; > > 1; >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index 8b91618210..213df0816b 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -349,8 +349,9 @@ __PACKAGE__->belongs_to( > ); > > __PACKAGE__->add_columns( >- '+lowestPriority' => { is_boolean => 1 }, >- '+suspend' => { is_boolean => 1 } >+ '+item_level_hold' => { is_boolean => 1 }, >+ '+lowestPriority' => { is_boolean => 1 }, >+ '+suspend' => { is_boolean => 1 } > ); > > 1; >diff --git a/api/v1/swagger/definitions/hold.json b/api/v1/swagger/definitions/hold.json >index df8289823b..dda32600b3 100644 >--- a/api/v1/swagger/definitions/hold.json >+++ b/api/v1/swagger/definitions/hold.json >@@ -74,6 +74,10 @@ > "item_type": { > "type": ["string", "null"], > "description": "If record level hold, the optional itemtype of the item the patron is requesting" >+ }, >+ "item_level": { >+ "type": "boolean", >+ "description": "If the hold is placed at item level" > } > } > } >-- >2.22.0
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 9834
:
90397
|
90398
|
90399
|
90436
|
90437
|
90438
|
90611
|
90612
|
90613
| 90677