Bugzilla – Attachment 181213 Details for
Bug 39692
With OnSiteCheckoutsForce the due date should be set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39692: With OnSiteCheckoutsForce the due date should be set
Bug-39692-With-OnSiteCheckoutsForce-the-due-date-s.patch (text/plain), 3.31 KB, created by
Roman Dolny
on 2025-04-19 16:33:59 UTC
(
hide
)
Description:
Bug 39692: With OnSiteCheckoutsForce the due date should be set
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2025-04-19 16:33:59 UTC
Size:
3.31 KB
patch
obsolete
>From 6dceb73e6fe22379c786fde62caf0cee2404181f Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Sat, 19 Apr 2025 15:27:33 +0000 >Subject: [PATCH] Bug 39692: With OnSiteCheckoutsForce the due date should be > set > >When OnSiteCheckoutsForce is set it is possible to on-site checkout an >item to a restricted patron. But the due data that is labelled with >"Automatic due date:" is not being set. As a result, when such a >checkout is performed and you do not set the date manually, the due >date will be set as for normal checkout (even if it is marked as >on-site checkout). > >Test plan: >========== >1. Enable OnSiteCheckouts and OnSiteCheckoutsForce; manually restrict > a patron. >2. Go to checkout page for this patron. You will notice: > "On-site checkouts only. Automatic due date:" with an empty input > field for the date. Perform the checkout (pick any existing > barcode). > Note the due date in patron's checkouts. In standard ktd it will be > +5 days from today, as for a regular checkuot (cf. Circulation and > fine rules) and the checkout will be marked as on-site checkout. >3. Apply the patch ; restart_all. >4. Repeat p. 2 (with another barcode or after checking-in). The date > in the date input field should be set to today's date and after > performing the checkout the sue date should also be set to > the current date. > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index ad2dcc6412..62979ba666 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -918,7 +918,15 @@ > <div class="onsite-checkout-only"> > <input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> > <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label> >- <input type="text" name="duedatespec" id="duedatespec" class="flatpickr" data-flatpickr-enable-time="true" data-flatpickr-on-close-focus="#barcode" /> >+ <input >+ type="text" >+ name="duedatespec" >+ id="duedatespec" >+ class="flatpickr" >+ data-flatpickr-enable-time="true" >+ data-flatpickr-on-close-focus="#barcode" >+ value="[% today_due_date_and_time | $KohaDates dateformat => 'iso', with_hours => 1 %]" >+ /> > <input type="hidden" name="onsite_checkout" checked="checked" value="1" /> > </div> > [% ELSE %] >-- >2.39.5
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 39692
:
181212
|
181213
|
181653
|
181660