Bugzilla – Attachment 128781 Details for
Bug 29737
Cannot suspend holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29737: Remove some unecessary parameters
Bug-29737-Remove-some-unecessary-parameters.patch (text/plain), 2.72 KB, created by
David Nind
on 2021-12-20 17:30:00 UTC
(
hide
)
Description:
Bug 29737: Remove some unecessary parameters
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-12-20 17:30:00 UTC
Size:
2.72 KB
patch
obsolete
>From f3acd34dbd7ac3f8f84156a70ad79ab7c1165046 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 20 Dec 2021 13:49:44 +0100 >Subject: [PATCH] Bug 29737: Remove some unecessary parameters > >We don't need them. We could also remove the biblionumber but it >requires change to the controller I'd prefer to not do now. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 +--- > 2 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >index 28573796c8..be1f6458ca 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >@@ -201,7 +201,7 @@ > <td> > [% IF Koha.Preference('SuspendHoldsIntranet') %] > [% UNLESS ( hold.found ) %] >- <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-borrowernumber="[% hold.borrowernumber | html %]" data-biblionumber="[% hold.biblionumber | html %]" data-date="[% hold.date | html %]"> >+ <button class="btn btn-default btn-xs toggle-suspend" data-reserve-id="[% hold.reserve_id | html %]" data-biblionumber="[% hold.biblionumber | html %]"> > [% IF ( hold.suspend ) %] > <i class="fa fa-play" aria-hidden="true"></i> Unsuspend > [% ELSE %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index aac69d56e2..d599b03883 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -431,11 +431,9 @@ $(document).ready(function() { > $(".toggle-suspend").on('click', function(e) { > e.preventDefault(); > let reserve_id = $(this).data('reserve-id'); >- let borrowernumber = $(this).data('borrowernumber'); > let biblionumber = $(this).data('biblionumber'); >- let date = $(this).data('date'); > let suspend_until = $('#suspend_until_' + reserve_id).val(); >- window.location.href='request.pl?action=toggleSuspend&reserve_id=' + reserve_id + '&borrowernumber=' + borrowernumber + '&biblionumber=' + biblionumber + '&date=' + date + '&suspend_until=' + suspend_until; >+ window.location.href='request.pl?action=toggleSuspend&reserve_id=' + reserve_id + '&biblionumber=' + biblionumber + '&suspend_until=' + suspend_until; > return false; > }); > }); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29737
:
128754
|
128755
|
128780
|
128781
|
128803
|
128804