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 <tomascohen@theke.io> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit169c535e88) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit57a58a79b4) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
c494fc0bd0
commit
a023870c83
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue