Bugzilla – Attachment 117730 Details for
Bug 27837
Permanent location is reverted to location when location updated and permanent_location mapped to MARC field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27837: Prevent the tests to fail is the field is mapped
Bug-27837-Prevent-the-tests-to-fail-is-the-field-i.patch (text/plain), 1.35 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-03-04 14:26:33 UTC
(
hide
)
Description:
Bug 27837: Prevent the tests to fail is the field is mapped
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-03-04 14:26:33 UTC
Size:
1.35 KB
patch
obsolete
>From c0392a4c4ab73cd5c8d27a2e15cd2fa813a65c04 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 4 Mar 2021 09:42:23 +0100 >Subject: [PATCH] Bug 27837: Prevent the tests to fail is the field is mapped > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Items.t | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index 4ab2e2dac62..ef4de8f20b8 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -1040,6 +1040,15 @@ subtest 'ModItemFromMarc' => sub { > subtest 'permanent_location' => sub { > plan tests => 6; > >+ # Make sure items.permanent_location is not mapped >+ Koha::MarcSubfieldStructures->search( >+ { >+ frameworkcode => q{}, >+ kohafield => 'items.permanent_location', >+ } >+ )->delete; >+ Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); >+ > my $item = $builder->build_sample_item; > > # By default, setting location to something new should set permanent location to the same thing >@@ -1079,4 +1088,5 @@ subtest 'ModItemFromMarc' => sub { > }; > > $schema->storage->txn_rollback; >-}; >+ Koha::Caches->get_instance->clear_from_cache( "MarcSubfieldStructure-" ); >+} >-- >2.30.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 27837
:
117570
|
117572
|
117625
|
117626
|
117627
|
117628
|
117634
|
117728
|
117729
|
117730
|
117735
|
117738
|
120361
|
120362
|
120363
|
120364
|
120562
|
120563
|
120564
|
120565
|
120566
|
120616
|
120628
|
120629
|
120832
|
121044
|
121045
|
121046
|
121047
|
121048
|
121049
|
121050
|
121051
|
121052