[Koha-bugs] [Bug 23463] Move C4::Items CRUD subroutines to Koha::Item

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 20 15:52:22 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463

--- Comment #107 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 101193
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=101193&action=edit
Bug 23463: Fix XSLT.t

>From commit bf49eecdd87e2b29760226281ab1afc0a185c7f0
     Bug 23463: Replace AddItem calls with Koha::Item->store

in build_sample_item:
-    my $itype = delete $args->{itype}
-      || $self->build_object( { class => 'Koha::ItemTypes' } )->itemtype;
+    # If itype is not passed it will be picked from the biblio (see
Koha::Item->store)

So before we generated a new itemtype if not passed, now we pick the one from
biblioitem->itemtype.

For this specific test we need to make sure they are different.

Signed-off-by: Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list