[Koha-bugs] [Bug 22288] Barcode file does not work in modifying items in batch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 8 17:15:07 CET 2019


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

--- Comment #3 from Federico Paiz <federicoantoniopaiz at gmail.com> ---

the code is fine?

/usr/share/koha/intranet/cgi-bin/tools/batchMod.pl



@contentlist = uniq @contentlist;
      if ($filecontent eq 'barcode_file') {
       my $existing_items = Koha::Items->search({ itemnumber =>\@contentlist
});
       @itemnumbers = $existing_items->get_column('itemnumber');
       my %exists = map {$_=>1}@{$existing_items->get_column('barcode')};
       @notfoundbarcodes = grep { !$exists{$_} } @contentlist;
     }

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


More information about the Koha-bugs mailing list