[Koha-bugs] [Bug 21591] Data inconsistencies - Item types and biblio level

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 3 12:59:55 CET 2020


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

--- Comment #12 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 99980
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99980
Bug 21591: Check for record level item type issues too

Review of attachment 99980:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=21591&attachment=99980)
-----------------------------------------------------------------

::: misc/maintenance/search_for_data_inconsistencies.pl
@@ +89,4 @@
>  
>      my @itemtypes = Koha::ItemTypes->search->get_column('itemtype');
>      if ( C4::Context->preference('item-level_itypes') ) {
> +        my $items_with_invalid_itype = Koha::Items->search( { -and => [itype => { not_in => \@itemtypes }, itype => { '!=' => '' }] } );

I do not think we need that change. @itemtypes contains the values from the
itemtypes table.

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


More information about the Koha-bugs mailing list