From 169c535e880bf1233622042cab76351b7dbc65ca Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 12 Jan 2022 11:15:10 -0300 Subject: [PATCH] Bug 29860: Remove item type-related warnings To test: 1. Run: $ kshell k$ prove t/db_dependent/selenium/regressions.t => FAIL: You see several item-level_itypes set but no itemtype set for item (985) at /kohadevbox/koha/Koha/Schema/Result/Item.pm line 905. 2. Apply this patch 3. Repeat 1 => SUCCESS: No more item type warnings 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/selenium/regressions.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 8e5a5212b2..8b3e34646b 100755 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -160,10 +160,12 @@ subtest 'Display circulation table correctly' => sub { ); my ( $biblionumber, $biblioitemnumber ) = add_biblio(); + my $item_type = $builder->build_object({ class => 'Koha::ItemTypes' }); my $item = $builder->build_sample_item( { biblionumber => $biblionumber, library => $library->branchcode, + itype => $item_type->itemtype, } ); my $context = Test::MockModule->new('C4::Context'); -- 2.39.5