Bugzilla – Attachment 192850 Details for
Bug 23269
Long hold queues are slowing the service
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23269: (follow-up) Fix suspend date change
0002-Bug-23269-follow-up-Fix-suspend-date-change.patch (text/plain), 2.38 KB, created by
Johanna Räisä
on 2026-02-10 08:20:19 UTC
(
hide
)
Description:
Bug 23269: (follow-up) Fix suspend date change
Filename:
MIME Type:
Creator:
Johanna Räisä
Created:
2026-02-10 08:20:19 UTC
Size:
2.38 KB
patch
obsolete
>From 933c509d18f8fa19793cd0fe0fb92c52a9d713df Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Johanna=20R=C3=A4is=C3=A4?= <johanna.raisa@gmail.com> >Date: Tue, 10 Feb 2026 08:35:40 +0200 >Subject: [PATCH 2/3] Bug 23269: (follow-up) Fix suspend date change > >This patch fixes suspend date change, so changing the suspend will save the new suspend date. >--- > koha-tmpl/intranet-tmpl/prog/js/holds.js | 30 ++++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index 5489f2fbc5..78ca816119 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -2198,6 +2198,36 @@ async function load_patron_holds_table(biblio_id, split_data) { > .attr("aria-hidden", true) > ); > }, >+ onChange: function (selectedDates, dateStr, instance) { >+ let hold_id = $(instance.input).attr("data-id"); >+ let current_date = $(instance.input).attr("data-suspend-date"); >+ dateStr = dateStr ? dateStr : null; >+ if (current_date != dateStr) { >+ let params = >+ dateStr !== null && dateStr !== "" >+ ? JSON.stringify({ end_date: dateStr }) >+ : null; >+ $.ajax({ >+ method: "POST", >+ url: >+ "/api/v1/holds/" + >+ encodeURIComponent(hold_id) + >+ "/suspension", >+ contentType: "application/json", >+ data: params, >+ success: function (data) { >+ holdsQueueTable.api().ajax.reload(null, false); >+ $(instance.input).attr( >+ "data-suspend-date", >+ dateStr >+ ); >+ }, >+ error: function (jqXHR, textStatus, errorThrown) { >+ holdsQueueTable.api().ajax.reload(null, false); >+ }, >+ }); >+ } >+ }, > }); > $(".toggle-suspend." + table_class).one("click", function (e) { > e.preventDefault(); >-- >2.34.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 23269
:
173770
|
176705
|
177151
|
181244
|
181247
|
182728
|
182729
|
182730
|
182754
|
182755
|
182756
|
182757
|
191638
|
191669
|
191670
|
192821
|
192849
|
192850
|
192851
|
192939
|
192940
|
192941
|
192942
|
192943
|
193100
|
193101
|
193102
|
193103
|
193104
|
193198
|
193199
|
193200
|
193201
|
193219
|
193336