From aa11745ad7409d18c9f4887ae598f9016ba326b3 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 19 Jul 2022 15:26:51 +0000 Subject: [PATCH] Bug 31179: (QA follow-up) Set field as hidden for tests We want the tests to pass in the case where field is set to visibile in Koha Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/UI/Form/Builder/Item.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/db_dependent/Koha/UI/Form/Builder/Item.t b/t/db_dependent/Koha/UI/Form/Builder/Item.t index b5d2a1a7a5..f5c3336888 100755 --- a/t/db_dependent/Koha/UI/Form/Builder/Item.t +++ b/t/db_dependent/Koha/UI/Form/Builder/Item.t @@ -387,6 +387,14 @@ sub setup_mss { } )->update( { repeatable => 0 } ); + Koha::MarcSubfieldStructures->search( + { + frameworkcode => '', + tagfield => $itemtag, + tagsubfield => ['l'], + } + )->update( { hidden => -4 } ); + Koha::MarcSubfieldStructures->search( { frameworkcode => '', -- 2.34.1