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

            Bug ID: 42681
           Summary: (Bug 34971 follow-up) serials/serials-collection.pl
                    generates error 500
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Serials
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
        Depends on: 34971

When working with subscription without superlibrarian permissions the page 

/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=NNN

generates error 500 with an entry:

Can't use string ("NNN") as a HASH ref while "strict refs" in use at
/usr/share/koha/lib/C4/Serials.pm line 2792.

in plack-error.log.

This is because can_edit_subscription called in serials/serials-collection.pl
(line ~234) requires a hash reference containing data from the subscription
table (or an unblessed Koha::Subscription object), and not subscriptionid.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34971
[Bug 34971] Closing a subscription should require edit_subscription permission
-- 
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