[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
Thu May 21 11:54:08 CEST 2020


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

--- Comment #13 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #12)
> Comment on attachment 99980 [details] [review]
> Bug 21591: Check for record level item type issues too
> 
> Review of attachment 99980 [details] [review]:
> -----------------------------------------------------------------
> 
> ::: 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.

I see what I did here, I add the check for "" to the check for 'Items do not
have itype defined'

I considered a blank string to be 'unset' and so report in that section rather
than in 'invalid' section

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


More information about the Koha-bugs mailing list