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

            Bug ID: 44071
           Summary: holds_reminder.pl triggers non-unique Koha::Holds
                    lookup when preparing notices
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Notices
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

When running `holds_reminder.pl` to generate HOLD_REMINDER notices, Koha
produces the following warning:


DBIx::Class::Storage::DBI::select_single(): Query returned more than one row.
SQL that returns multiple rows is DEPRECATED for ->find and ->single at
/usr/share/koha/lib/Koha/Objects.pm line 95


**Steps to reproduce:**

1. Configure HOLD_REMINDER notices and enable hold reminder messaging for a
patron.
2. Ensure the patron has qualifying waiting holds.
3. Run the reminder cronjob in dry-run mode:

   perl /usr/share/koha/bin/cronjobs/holds/holds_reminder.pl \
     -v --lettercode HOLD_REMINDER --days 3

4. Observe the DBIx::Class warning in the output.

-- 
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]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to