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

            Bug ID: 26632
           Summary: BatchStageMarcRecords passes a random number to
                    AddBiblioToBatch / AddAuthToBatch
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: MARC Bibliographic record staging/import
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

424                 $import_record_id = AddBiblioToBatch($batch_id, $rec_num,
$marc_record, $encoding, int(rand(99999)), 0);
 430                 $import_record_id = AddAuthToBatch($batch_id, $rec_num,
$marc_record, $encoding, int(rand(99999)), 0, $marc_type);

This populates:
my $update_counts = @_ ? shift : 1;

Which is used once:
_update_batch_record_counts($batch_id) if $update_counts;

So...almost always we want to update, but very occasionally, randomly, don't?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to