Bugzilla – Attachment 89902 Details for
Bug 22922
Allow to modify hold and hold expiration date in staff
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22922: Use jQuery datepicker instead of <input type="date">
Bug-22922-Use-jQuery-datepicker-instead-of-input-t.patch (text/plain), 2.54 KB, created by
Julian Maurice
on 2019-05-17 14:07:58 UTC
(
hide
)
Description:
Bug 22922: Use jQuery datepicker instead of <input type="date">
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2019-05-17 14:07:58 UTC
Size:
2.54 KB
patch
obsolete
>From 6e6da1f0c95f03d1a63acf58d568fa6406abd22e Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 17 May 2019 16:06:41 +0200 >Subject: [PATCH] Bug 22922: Use jQuery datepicker instead of <input > type="date"> > >--- > koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 4 ++-- > reserve/modrequest.pl | 5 +++-- > 2 files changed, 5 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 dbb9ccf632..227f0089df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc >@@ -108,12 +108,12 @@ > <td>[% hold.notes | html %]</td> > <td> > [% IF Koha.Preference('AllowHoldDateInFuture') %] >- <input type="date" value="[% hold.date | html %]" required name="reservedate"> >+ <input type="text" class="datepicker" value="[% hold.date | $KohaDates %]" required name="reservedate"> > [% ELSE %] > [% hold.date | $KohaDates %] > [% END %] > </td> >- <td><input type="date" value="[% hold.expirationdate | html %]" name="expirationdate"></td> >+ <td><input type="text" class="datepicker" value="[% hold.expirationdate | $KohaDates %]" name="expirationdate"></td> > > <td> > [% IF ( hold.found ) %] >diff --git a/reserve/modrequest.pl b/reserve/modrequest.pl >index 04c1b7d162..e75fac73ac 100755 >--- a/reserve/modrequest.pl >+++ b/reserve/modrequest.pl >@@ -27,6 +27,7 @@ use CGI qw ( -utf8 ); > use C4::Output; > use C4::Reserves; > use C4::Auth; >+use Koha::DateUtils qw( dt_from_string ); > > my $query = new CGI; > my ( $template, $loggedinuser, $cookie ) = get_template_and_user( >@@ -72,13 +73,13 @@ else { > my $params = { > rank => $rank[$i], > reserve_id => $reserve_id[$i], >- expirationdate => $expirationdates[$i], >+ expirationdate => $expirationdates[$i] ? dt_from_string($expirationdates[$i]) : undef, > branchcode => $branch[$i], > itemnumber => $itemnumber[$i], > suspend_until => $suspend_until[$i] > }; > if (C4::Context->preference('AllowHoldDateInFuture')) { >- $params->{reservedate} = $reservedates[$i]; >+ $params->{reservedate} = $reservedates[$i] ? dt_from_string($reservedates[$i]) : undef; > } > > ModReserve($params); >-- >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 22922
:
89824
|
89896
|
89902
|
89915
|
89916
|
89917
|
94372
|
94383
|
94384
|
94385
|
94386