Bugzilla – Attachment 99928 Details for
Bug 11999
Add two checks in CanBookBeReserved and CanItemBeReserved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11999: Test improvements
Bug-11999-Test-improvements.patch (text/plain), 1.30 KB, created by
Arthur Suzuki
on 2020-03-02 15:17:54 UTC
(
hide
)
Description:
Bug 11999: Test improvements
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2020-03-02 15:17:54 UTC
Size:
1.30 KB
patch
obsolete
>From d24697e432f7b6c44eb770b4868fa63d8e491b52 Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Thu, 18 Jul 2019 15:03:40 +0200 >Subject: [PATCH] Bug 11999: Test improvements > >improve t/db_dependent/Reserves.t to make tests pass on UNIMARC installation >--- > t/db_dependent/Reserves.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index 618f0598c9..aec9423674 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -61,7 +61,11 @@ my $frameworkcode = q//; > t::lib::Mocks::mock_preference('ReservesNeedReturns', 1); > > # Somewhat arbitrary field chosen for age restriction unit tests. Must be added to db before the framework is cached >-$dbh->do("update marc_subfield_structure set kohafield='biblioitems.agerestriction' where tagfield='521' and tagsubfield='a' and frameworkcode=?", undef, $frameworkcode); >+$dbh->do(q| >+ INSERT INTO marc_subfield_structure (frameworkcode, tagfield, tagsubfield, kohafield) >+ VALUES ('', '521', 'a', 'biblioitems.agerestriction') >+ ON DUPLICATE KEY UPDATE kohafield = VALUES(kohafield) >+|); > my $cache = Koha::Caches->get_instance; > $cache->clear_from_cache("MarcStructure-0-$frameworkcode"); > $cache->clear_from_cache("MarcStructure-1-$frameworkcode"); >-- >2.20.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 11999
:
26589
|
28986
|
31524
|
35697
|
36358
|
36404
|
36630
|
38397
|
41951
|
41952
|
44631
|
44632
|
46262
|
46263
|
50224
|
50225
|
58741
|
58742
|
58743
|
63593
|
63594
|
63595
|
66267
|
66268
|
66269
|
66270
|
88300
|
88301
|
88302
|
88303
|
90142
|
90143
|
90144
|
90146
|
90147
|
91046
|
91402
|
91403
|
91479
|
91481
|
91494
|
91580
|
91581
|
91582
|
91590
|
91591
|
91592
|
91593
|
99927
|
99928
|
106481
|
106494
|
111687
|
111688
|
111689
|
112871
|
112872
|
112873
|
112874
|
120776
|
120777
|
120778
|
120779
|
120780
|
121531
|
121612