Bugzilla – Attachment 147442 Details for
Bug 30556
OPAC shows "Place hold" button on available items even if on shelf holds aren't allowed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30846: (follow-up) Unit tests
Bug-30846-follow-up-Unit-tests.patch (text/plain), 1.16 KB, created by
Hammat wele
on 2023-02-27 13:52:04 UTC
(
hide
)
Description:
Bug 30846: (follow-up) Unit tests
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2023-02-27 13:52:04 UTC
Size:
1.16 KB
patch
obsolete
>From eafc09055f6a6170feda7b9d9f3e038d3b4ea86e Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Mon, 27 Feb 2023 13:50:12 +0000 >Subject: [PATCH] Bug 30846: (follow-up) Unit tests > >https://bugs.koha-community.org/show_bug.cgi?id=30556 >--- > t/db_dependent/Reserves.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index 3371c9539d..d59b236e06 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -1455,7 +1455,7 @@ $schema->storage->txn_rollback(); > > subtest 'IsAvailableForItemLevelRequest() tests' => sub { > >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -1487,6 +1487,11 @@ subtest 'IsAvailableForItemLevelRequest() tests' => sub { > "Item not available for item-level hold because no effective item type" > ); > >+ my $item_1 = $builder->build_sample_item({ notforloan => -1 }); >+ ok( >+ C4::Reserves::IsAvailableForItemLevelRequest( $item_1, $patron ), >+ "Item not available for item-level hold because no effective item type" >+ ); > $schema->storage->txn_rollback; > }; > >-- >2.34.1
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 30556
:
133497
|
133608
|
134172
|
134420
|
134421
|
134436
|
134437
|
134438
|
134617
|
134619
|
134620
|
134621
|
135395
|
137065
|
139289
|
139290
|
139291
|
139292
|
144429
|
147378
|
147379
|
147380
|
147381
|
147382
|
147441
|
147442
|
150218
|
150219
|
150220
|
150221
|
150222
|
156188
|
156189
|
156190
|
156191
|
156192
|
156429
|
157087
|
157088
|
157089
|
157090
|
157091