[Koha-bugs] [Bug 21478] Koha::Hold->suspend_hold allows suspending in transit holds
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 22 23:27:44 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21478
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at bugs.koha-c
| |ommunity.org
--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Indeed, the condition exist template-side only.
* in holds_table.inc (for request.pl)
177 [% IF SuspendHoldsIntranet %]
178 <td>
179 [% UNLESS ( hold.found ) %]
* in holds.js (for "Check out", "Details" from the patron's module)
152 if ( oObj.found ) {
153 return "";
154 } else if ( oObj.suspend == 1 ) {
155 return "<a class='hold-resume btn
btn-default btn-xs' id='resume" + oObj.reserve_id + "'>"
156 + "<i class='fa fa-play'></i> " +
RESUME + "</a>";
157 } else {
158 return "<a class='hold-suspend btn
btn-default btn-xs' id='suspend" + oObj.reserve_id + "'>"
159 + "<i class='fa fa-pause'></i> " +
SUSPEND + "</a>";
160 }
Other calls to ModReserve do not suspend/resume, except the one from
Koha/REST/V1/Hold.pm.
--
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