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

            Bug ID: 42004
           Summary: Checkout history becomes weird after 1000 checkouts on
                    an item
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Circulation
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

This code from issuehistory.pl looks very weird to me, in particular when you
have a timestamp ordered ascendently. A temporary fix waiting for an update of
the array would be to order by timestamps descending.

 51 my @old_checkouts = Koha::Old::Checkouts->search(
 52     { biblionumber => $biblionumber },
 53     {
 54         join       => 'item',
 55         order_by   => 'timestamp',
 56         rows       => 1000,
 57     }
 58 )->as_list;

Steps to reproduce :
1 - Add 1000+ checkouts
2 - visit issuehistory.pl -> the last issues are not on top.

-- 
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