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

            Bug ID: 40755
           Summary: Hold cancellation requests cause error 500 on holds
                    waiting page
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Keywords: regression, rel_25_05_candidate
          Severity: major
          Priority: P5 - low
         Component: Hold requests
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
        Depends on: 38714

To reproduce:

1. Enable hold cancellation requests from the OPAC
   i. Go to Administration > Circulation and Fines rules
   ii. In the "Default waiting hold cancellation policy" section, add the rule:
       All / All / Yes
2. Place at least two holds for pickup at the logged-in library (for ease of
testing, place both holds for the same patron)
3. Check in items for both holds and confirm to set holds to Waiting
4. Log into the OPAC as the patron from step 2
5. Go to the patron's holds tab and request cancellation for both holds
6. In the staff interface, go to Circulation > Holds awaiting pickup
==> Error 500! :(

Also, the logs contain the error:
==> /var/log/koha/montgomerytest/plack-error.log <==
Template process failed: undef error - The method
Koha::Hold::CancellationRequest->0 is not covered by tests!

Trace begun at /usr/share/koha/lib/Koha/Object.pm line 1042
Koha::Object::AUTOLOAD('Koha::Hold::CancellationRequest=HASH(0x55609e31c2c0)')
called at
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/includes/waiting_holds.inc
line 40

It looks like this was caused by a typo in bug 38714 - cancellation_request.0
(object) instead of cancellation_requests.0 (list).


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38714
[Bug 38714] Adjust templates for prettier
-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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