[Koha-bugs] [Bug 28541] Incorrect default pickup location passed to HTML, causing UI show items unreservable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 10 15:21:48 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28541
--- Comment #2 from Joonas Kylmälä <joonas.kylmala at helsinki.fi> ---
I think I found a solution: Let's similary fetch the possible pickup locations
like we do in request.tt:
> [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %]
And if the request.pl gets called without a pickup location then let's call
Koha::Template::Plugin::Branches::pickup_locations($biblionumber, $patron) to
get one. This gets a valid pickup location selected in the holds page and if
the branch is wrong the user can change it.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list