https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42681
--- Comment #2 from Amaury GAU <[email protected]> --- Created attachment 211770 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211770&action=edit Bug 42681: Access serials collection with edit subscriptions can_edit_subscription in serials-collection.pl expects a subscription hashref when passed a subscription id. Staff without superserials permission get an internal servor error "Can't use string as a HASH ref". This patch allows staff without superserials permission to access to the page as it is meant to be. Test Plan : 1. Enable IndependantBranches in the system preferences. 2. Go to the Serials module, add a new subscription, and fill the form (eg. record 53, vendor "My vendor") and remember the library filled. 3. Create staff patron in that same library with edit_subscriptions permission. 4. Log in as the staff patron, go into the Serials module and look for the subscription. 5. Click on the "serial collection" on the nav bar: internal server error. 6. Apply patch. 7. Repeat 4 to 5 : the page "serial collection" loads with edit actions. 8. Change the subscription library to a different one: the subscription cannot be accessed anymore through the Serial research. 9. As a superlibrarian, look for the subscription in the Serials module: the page still loads with edit actions. Signed-off-by: Amaury Gau <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
