[Koha-bugs] [Bug 31154] Batch item modification fails when "Use default values" is checked
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 16 10:45:13 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31154
--- Comment #19 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
We are really wasting resources here.
First we do:
my %itemdata = map { lc($_->{barcode}) => $_->{itemnumber} } @{
Koha::Items->search({ barcode => { -in => \@barcodelist } }, { columns => [
'itemnumber', 'barcode' ] } )->unblessed };
Lets discard that info.
And later do:
sub build_table {
my ( $self, $params ) = @_;
my %itemnumbers_to_idx = map { $self->{itemnumbers}->[$_] => $_ }
0..$#{$self->{itemnumbers}};
my $items = Koha::Items->search( { itemnumber => $self->{itemnumbers} } );
We are looking up all items again ;)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list