From e326779e86cbfd383e4444e5fc30e96e9e8a6f01 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 Content-Type: text/plain; charset=utf-8 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 --- 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.20.1