Bugzilla – Attachment 106005 Details for
Bug 25789
New expiration date on placing a hold in staff interface can be set to a date in the past
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25789: Don't allow past date as holds expiration date
Bug-25789-Dont-allow-past-date-as-holds-expiration.patch (text/plain), 1.52 KB, created by
Owen Leonard
on 2020-06-18 12:27:19 UTC
(
hide
)
Description:
Bug 25789: Don't allow past date as holds expiration date
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-06-18 12:27:19 UTC
Size:
1.52 KB
patch
obsolete
>From 8f02f4977f3a27ce381d5e841d3b0cbeb9533285 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Thu, 18 Jun 2020 09:36:55 +0300 >Subject: [PATCH] Bug 25789: Don't allow past date as holds expiration date > >When editing existing holds expiration date it's possible to select >past date from datepicker. This patch changes expiration inputs class >as "datepickerto" to make past dates unselectable. > >To test: >1. Find item with holds >2. Edit holds expiration date >=> Note that past dates are selectable >3. Apply patch >4. Edit again >=> Past dates are no longer selectable > >Sponsored-by: Koha-Suomi Oy > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 a10e281d3b..600977a054 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >@@ -113,7 +113,7 @@ > [% hold.date | $KohaDates %] > [% END %] > </td> >- <td><input type="text" class="datepicker" value="[% hold.expirationdate | $KohaDates %]" size="10" name="expirationdate" /></td> >+ <td><input type="text" class="datepickerto" value="[% hold.expirationdate | $KohaDates %]" size="10" name="expirationdate" /></td> > > <td> > [% IF ( hold.found ) %] >-- >2.11.0
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 25789
:
105996
|
106005
|
106131