https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17820 Bug ID: 17820 Summary: Do not use search->next when find can be used Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: jonathan.druart@bugs.koha-community.org Reporter: jonathan.druart@bugs.koha-community.org QA Contact: testopia@bugs.koha-community.org Depends on: 16276
From C4::Auth: my $patron = Koha::Patrons->search({ userid => $userid })->next;
This should be replaced with my $patron = Koha::Patrons->find({ userid => $userid }); userid is a unique key Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16276 [Bug 16276] When automatically deleting expired borrowers, make sure they didn't log in recently -- You are receiving this mail because: You are watching all bug changes.