@@ -, +, @@ ...$_->... ...$item->... --------- 1) Apply this patch after a reset to master. 2) Log in to staff client 3) Add one item via z39.50, setting barcode to a known value (BARCODE1) 4) Wait for the reindex 5) Home -> Tools -> Inventory/Stocktaking 6) Browse for a file with the barcode in it 7) Set the library dropdown to the library branch of the added item. 8) Check 'Compare barcodes list to results:' 9) Click 'Submit' -- This should not die under plack. This should not generate blank last seen dates. The last seen dates should be as expected. in the patch which shall not be pushed to master. --- tools/inventory.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/inventory.pl +++ a/tools/inventory.pl @@ -279,7 +279,7 @@ if ( $compareinv2barcd ) { my $dls = output_pref( { dt => dt_from_string( $datelastseen ), dateformat => 'iso' } ); foreach my $item ( @$inventorylist ) { - my $cdls = output_pref( { dt => dt_from_string( $_->{datelastseen} ), + my $cdls = output_pref( { dt => dt_from_string( $item->{datelastseen} ), dateformat => 'iso' } ); if ( $cdls lt $dls ) { $item->{problem} = 'missingitem'; @@ -326,7 +326,7 @@ foreach my $item ( @scanned_items ) { } # Modify date last seen for scanned items - ModDateLastSeen($_->{'itemnumber'}); + ModDateLastSeen($item->{'itemnumber'}); $moddatecount++; } --