@@ -, +, @@
type="date">
---
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 4 ++--
reserve/modrequest.pl | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
@@ -108,12 +108,12 @@
[% hold.notes | html %] |
[% IF Koha.Preference('AllowHoldDateInFuture') %]
-
+
[% ELSE %]
[% hold.date | $KohaDates %]
[% END %]
|
- |
+ |
[% IF ( hold.found ) %]
--- a/reserve/modrequest.pl
+++ a/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);
--
|