Bugzilla – Attachment 166069 Details for
Bug 34263
Suspending holds consecutively populates previously used date falsely
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34263: Suspending holds consecutively populates previously used date falsely
Bug-34263-Suspending-holds-consecutively-populates-previo.patch (text/plain), 2.47 KB, created by
Katariina Pohto
on 2024-05-02 13:46:02 UTC
(
hide
)
Description:
Bug 34263: Suspending holds consecutively populates previously used date falsely
Filename:
MIME Type:
Creator:
Katariina Pohto
Created:
2024-05-02 13:46:02 UTC
Size:
2.47 KB
patch
obsolete
>From c7fb08be7fb806259e200b1c178f393c441511d3 Mon Sep 17 00:00:00 2001 >From: Katariina Pohto <trainee@koha-suomi.fi> >Date: Thu, 2 May 2024 16:09:39 +0300 >Subject: [PATCH] Bug 34263: Suspending holds consecutively populates > previously used date falsely > >Suspending a hold doesn't clear the date from the date picker. When another hold is suspended >the previously used date will show on the date picker but the value is not set on the hold. >Suspending the hold will suspend it indefinitely. Also the link "Clear date to suspend indefinitely" >will not clear the date picker. This patch will make both the Suspend button and the Clear date link >clear the dates from both the date picker and the variable passed on, making the suspending consistent >with what is seen on the date picker. > >Test plan: >1) Place 3 holds on a patron. >2) Suspend a hold and set a date for it. >3) Suspend a second hold and notice the previously used date is shown on the date picker. > Note that the hold will be suspended indefinitely. >4) Open the suspending window for the third hold and pick a date. Click "Clear date to suspend indefinitely" > and note the date picker doesn't get cleared. The hold will be suspended indefinitely. >5) Apply patch. >6) Suspend a hold and set a date for it. >7) Suspend a second hold and notice the date picker does not have a preset date. >8) Pick a date and clear it with the "Clear date to suspend indefinitely link". > See that the date picker also gets cleared. >--- > koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js >index ea9e354c94..6bd669b843 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/holds.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js >@@ -420,7 +420,7 @@ $(document).ready(function() { > </div>\ > "); > >- $("#suspend-modal-clear-date").on( "click", function() { $("#suspend-modal-until").val(""); } ); >+ $("#suspend-modal-clear-date").on( "click", function() { $(".suspend-until").val(""); } ); > > $("#suspend-modal-submit").on( "click", function( e ) { > e.preventDefault(); >@@ -440,7 +440,7 @@ $(document).ready(function() { > } > holdsTable.api().ajax.reload(); > }).done(function() { >- $("#suspend-modal-until").val(""); // clean the input >+ $(".suspend-until").val(""); // clean the input > $('#suspend-modal').modal('hide'); > }); > }); >-- >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 34263
:
166069
|
166140
|
166141
|
166397
|
166398